choose only existing static methods
Extract shared base class for InstanceMethodInvokingClosure and StaticMethodInvokingClosure