void (@NotNull Project project, @NotNull ExternalSystemManager<?, ?, ?, ?, ?> manager, @NotNull Set<String> linkedProjectPaths) { AbstractExternalSystemSettings<?, ?, ?> settings = manager.getSettingsProvider().fun(project); if (!settings.getLinkedProjectsSettings().isEmpty()) { return; } ToolWindow toolWindow = getToolWindow(project, manager.getSystemId()); if (toolWindow != null) { AppUIExecutor .onUiThread() .expireWith(settings) .expireWith(toolWindow.getDisposable()) .execute(() -> toolWindow.setAvailable(false)); } }