Returns the method from methods2 that has the given name.
name
MethodElement2? getMethod2(String name);