void (@NotNull final NotificationData notificationData, @NotNull final Project project, @NotNull ExternalSystemException e) { for (String fix : e.getQuickFixes()) { if (OpenGradleSettingsCallback.ID.equals(fix)) { notificationData.setListener(OpenGradleSettingsCallback.ID, new OpenGradleSettingsCallback(project)); } else if (GotoSourceNotificationCallback.ID.equals(fix)) { notificationData.setListener(GotoSourceNotificationCallback.ID, new GotoSourceNotificationCallback(notificationData, project)); } else if (OpenExternalSystemSettingsCallback.ID.equals(fix)) { String linkedProjectPath = e instanceof LocationAwareExternalSystemException ? ((LocationAwareExternalSystemException)e).getFilePath() : null; notificationData.setListener( OpenExternalSystemSettingsCallback.ID, new OpenExternalSystemSettingsCallback(project, GradleConstants.SYSTEM_ID, linkedProjectPath) ); } } }