void (SimpleJavaParameters params, String mavenVersion) { if (setupThrowMainClass && MavenUtil.isMavenUnitTestModeEnabled()) { setupThrowMainClass = false; params.setMainClass(MAIN_CLASS_WITH_EXCEPTION_FOR_TESTS); } else if (StringUtil.compareVersionNumbers(mavenVersion, "4.0") >= 0) { params.setMainClass(MAIN_CLASS40); } else if (StringUtil.compareVersionNumbers(mavenVersion, "3.6") >= 0) { params.setMainClass(MAIN_CLASS36); } else { params.setMainClass(MAIN_CLASS); } }