boolean (@NotNull Project project, JavaParameters javaParameters, MavenRunConfiguration runConfiguration) { if (hasResumeFromParameter(runConfiguration)) { // This runConfiguration was created by other MavenResumeAction. MavenRunConfiguration clonedRunConf = runConfiguration.clone(); List<String> clonedGoals = clonedRunConf.getRunnerParameters().getGoals(); clonedGoals.remove(clonedGoals.size() - 1); clonedGoals.remove(clonedGoals.size() - 1); try { javaParameters = clonedRunConf.createJavaParameters(project); } catch (ExecutionException e) { return false; } } for (String params : javaParameters.getProgramParametersList().getList()) { if (PARAMS_DISABLING_RESUME.contains(params)) { return false; } } return true; }