public static Method findCommandMethod(Class<? extends CustomCommandScope> commandsProvider,String methodName){
  try {
    return commandsProvider.getMethod(methodName,InputStream.class,PrintStream.class,String[].class);
  }
 catch (  NoSuchMethodException e) {
    return null;
  }
}

public static Method findCommandMethod ( Class < ? extends CustomCommandScope > commandsProvider , String methodName ) { try { return commandsProvider . getMethod ( methodName , InputStream . class , PrintStream . class , String [ ] . class ) ; } catch ( NoSuchMethodException e ) { return null ; } }
locate the command method .
