public static Field findStaticField(Class<?> type,String name) throws NoSuchFieldException {
  Field field=findField(type,name);
  if (!Modifier.isStatic(field.getModifiers())) {
    throw new NoSuchFieldException("Field '" + name + "' is not static");
  }
  return field;
}

public static Field findStaticField ( Class < ? > type , String name ) throws NoSuchFieldException { Field field = findField ( type , name ) ; if ( ! Modifier . isStatic ( field . getModifiers ( ) ) ) { throw new NoSuchFieldException ( "Field '" + name + "' is not static" ) ; } return field ; }
finds public static field that is declared in public class .
