@NotNull
  public static GroovyRunnableScriptType getScriptType(@NotNull GroovyFile script) {
    GroovyScriptType scriptType = GroovyScriptTypeDetector.getScriptType(script);
    return scriptType == null ? DEFAULT_TYPE : (GroovyRunnableScriptType)scriptType;
  }
@NotNull
  public static GroovyRunnableScriptType getScriptType(@NotNull GroovyFile script)