ExecutionException (@NlsContexts.DialogMessage String text, @NlsContexts.DialogMessage String textWithFix, @NotNull MavenGeneralSettings coreSettings, @Nullable Project project, @Nullable MavenRunConfiguration runConfiguration) { Project notNullProject = project; if (notNullProject == null) { if (runConfiguration == null) return new ExecutionException(text); notNullProject = runConfiguration.getProject(); } if (coreSettings == MavenProjectsManager.getInstance(notNullProject).getGeneralSettings()) { return new ProjectSettingsOpenerExecutionException(textWithFix, notNullProject); } if (runConfiguration != null) { Project runCfgProject = runConfiguration.getProject(); if (((RunManagerImpl)RunManager.getInstance(runCfgProject)).getSettings(runConfiguration) != null) { return new RunConfigurationOpenerExecutionException(textWithFix, runConfiguration); } } return new ExecutionException(text); }