private void setupMainClass(SimpleJavaParameters params, MavenVersionAwareSupportExtension extension) {
    if (setupThrowMainClass && MavenUtil.isMavenUnitTestModeEnabled()) {
      setupThrowMainClass = false;
      params.setMainClass(MAIN_CLASS_WITH_EXCEPTION_FOR_TESTS);
    }
    else {
      params.setMainClass(extension.getMainClass(myDistribution));
    }
  }
private void setupMainClass(SimpleJavaParameters params, MavenVersionAwareSupportExtension extension)