void (@NotNull Collection<? extends PS> settings) { setLinkedProjectsSettings(settings, new ExternalSystemSettingsListener<>() { @Override public void onProjectsLinked(@NotNull Collection<PS> settings) { AbstractExternalSystemSettings.this.onProjectsLinked(settings); } @Override public void onProjectsUnlinked(@NotNull Set<String> linkedProjectPaths) { AbstractExternalSystemSettings.this.onProjectsUnlinked(linkedProjectPaths); } }); }