boolean (@NotNull ExternalSystemRunConfiguration configuration, @NotNull ConfigurationContext context) { Project project = getProjectFromContext(context); if (project == null) return false; ExternalSystemTaskExecutionSettings contextTaskExecutionSettings = getTaskSettingsFromContext(context); if (contextTaskExecutionSettings == null) return false; ExternalSystemTaskExecutionSettings taskExecutionSettings = configuration.getSettings(); if (!contextTaskExecutionSettings.getExternalSystemId().equals(taskExecutionSettings.getExternalSystemId())) { return false; } if (!StringUtil.equals(contextTaskExecutionSettings.getExternalProjectPath(), taskExecutionSettings.getExternalProjectPath())) { return false; } if (!contextTaskExecutionSettings.getTaskNames().equals(taskExecutionSettings.getTaskNames())) return false; return true; }