public static Object2IntMap<GrParameter> findParametersToRemove(IntroduceParameterInfo helper) {
    final Object2IntMap<GrParameter> result = new Object2IntOpenHashMap<>();

    final TextRange range = ExtractUtil.getRangeOfRefactoring(helper);

    GrParameter[] parameters = helper.getToReplaceIn().getParameters();
    for (int i = 0; i < parameters.length; i++) {
      GrParameter parameter = parameters[i];
      if (shouldRemove(parameter, range.getStartOffset(), range.getEndOffset())) {
        result.put(parameter, i);
      }
    }
    return result;
  }
public static Object2IntMap<GrParameter> findParametersToRemove(IntroduceParameterInfo helper)