Project (@NotNull GradleProjectSettings settings) { for (Project project : ProjectManager.getInstance().getOpenProjects()) { GradleProjectSettings linkedProjectSettings = GradleSettings.getInstance(project).getLinkedProjectSettings(settings.getExternalProjectPath()); if (linkedProjectSettings == settings) { return project; } } return null; }