@Nullable
  public static GroovyScriptType getScriptType(@NotNull GroovyFile file) {
    for (GroovyScriptTypeDetector detector : EP_NAME.getExtensions()) {
      if (detector.isSpecificScriptFile(file)) {
        return detector.getScriptType();
      }
    }
    return null;
  }
@Nullable
  public static GroovyScriptType getScriptType(@NotNull GroovyFile file)