Why does .getConstructor fail with a NoSuchMethodException despite zero-arg constructors existing for the class?

Thanks, that sounds like a good solution, but when I’ve tried working with static classes and methods in the past (and also just now when I tried it out again), the IDE always complains that I can’t access inbuilt Processing functions in those classes and methods any more, as the methods from PApplet aren’t static. For example:

Cannot make a static reference to the non-static method loadImage(String) from the type PApplet

Is there something I’m missing to make this work? Because I’d love to work with static anyway, but just thought I couldn’t in Processing.