code: public static boolean isPublicStatic(Method m) {
          final int modifiers = m.getModifiers();
          return Modifier.isPublic(modifiers) && Modifier.isStatic(modifiers);
      }
docs: Determine whether the method is declared public static
  @param m
  @return true if the method is declared public static