@NotNull
  public static GlobalSearchScope patchResolveScope(@NotNull GroovyFile script, @NotNull GlobalSearchScope scope) {
    GroovyScriptType scriptType = getScriptType(script);
    return scriptType == null ? scope : scriptType.patchResolveScope(script, scope);
  }
@NotNull
  public static GlobalSearchScope patchResolveScope(@NotNull GroovyFile script, @NotNull GlobalSearchScope scope)