public static ExecutableElement getMethod(TypeElement typeElement, String name, TypeMirror... parameters)
    {
        List<ExecutableElement> allMethods = getAllMethods(typeElement, name, parameters);
        if (allMethods.isEmpty())
        {
            return null;
        }
        else
        {
            Collections.sort(allMethods, new SpecificMethodComparator());
            return allMethods.get(0);
        }
    }
public static ExecutableElement getMethod ( TypeElement typeElement , String name , TypeMirror ... parameters ) { List < ExecutableElement > allMethods = getAllMethods ( typeElement , name , parameters ) ; if ( allMethods . isEmpty ( ) ) { return null ; } else { Collections . sort ( allMethods , new SpecificMethodComparator ( ) ) ; return allMethods . get ( 0 ) ; } }
Returns the most specific named method in typeElement,
or null if such method was not found
@param typeElement Class
@param name Method name
@param parameters Method parameters
@return