Wrap the class as part of your own API
If you really have to modify the source, you can always fork the project on github, and make your modifications to the source as you see fit. But I think this would be preferred:
public class OpenClassThatIsntMine {
// Bunch of their code
}
class MyClass {
private OpenClassThatIsntMine foobar;
// My code, which "extends" the functionality of the open source class.
}