private static boolean isStatic(Method m){
  int mods=m.getModifiers();
  return (mods & Modifier.STATIC) != 0;
}

private static boolean isStatic ( Method m ) { int mods = m . getModifiers ( ) ; return ( mods & Modifier . STATIC ) != 0 ; }
returns if a method is static
