public static String[] getForkModel(int selectedType, Object repeat) {
    if (selectedType != JUnitConfigurationModel.CLASS &&
        selectedType != JUnitConfigurationModel.METHOD &&
        selectedType != JUnitConfigurationModel.BY_SOURCE_POSITION) {
      return FORK_MODE_ALL;
    }

    boolean isMethod = selectedType == JUnitConfigurationModel.METHOD ||
                       selectedType == JUnitConfigurationModel.BY_SOURCE_POSITION;
    boolean once = RepeatCount.ONCE.equals(repeat);
    String[] model = FORK_MODE;
    if (once && isMethod) {
      model = FORK_MODE_NONE;
    }
    else if (!once && !isMethod) {
      model = FORK_MODE_ALL;
    }
    return model;
  }
public static String[] getForkModel(int selectedType, Object repeat)