public static boolean isClassLiteralPossible(ClassNode classNode){
  return Modifier.isPublic(classNode.getModifiers());
}

public static boolean isClassLiteralPossible ( ClassNode classNode ) { return Modifier . isPublic ( classNode . getModifiers ( ) ) ; }
tells if a class node is candidate for class literal bytecode optimization . if so , bytecode may use ldc instructions instead of static constant class fields to retrieve class literals .
