void (@NotNull String projectPath) { ExternalSystemProjectTracker projectTracker = ExternalSystemProjectTracker.getInstance(project); List<ExternalSystemProjectId> projectSettings = findAllProjectSettings(); ApplicationManager.getApplication().invokeLater(() -> { projectSettings.stream() .filter(it -> it.getExternalProjectPath().equals(projectPath)) .forEach(it -> projectTracker.markDirty(it)); for (Contributor contributor : EP_NAME.getExtensions()) { contributor.markDirty(projectPath); } projectTracker.scheduleProjectRefresh(); }, project.getDisposed()); }