public static boolean isPlainGroovyScript(@NotNull GroovyFile script) {
    return GroovyScriptTypeDetector.getScriptType(script) == null;
  }
public static boolean isPlainGroovyScript(@NotNull GroovyFile script)