public static @NotNull NamedScopeManager getInstance(Project project) {
    return project.getService(NamedScopeManager.class);
  }
public static @NotNull NamedScopeManager getInstance(Project project)