public static boolean isProtected(int mod){
  return Modifier.isProtected(mod);
}

public static boolean isProtected ( int mod ) { return Modifier . isProtected ( mod ) ; }
returns if modifier is protected . note that in our case modifier can be mix ( public and private for example ) .
