private @IntentionName String getShortText(final StringBuilder buf,
                                             final HashSet<? extends ParameterInfoImpl> newParams,
                                             final HashSet<? extends ParameterInfoImpl> removedParams,
                                             final HashSet<? extends ParameterInfoImpl> changedParams) {
    final String targetMethodName = myTargetMethod.getName();
    PsiClass aClass = myTargetMethod.getContainingClass();
    if (aClass != null && aClass.findMethodsByName(targetMethodName, true).length == 1) {
      JavaElementKind parameter = JavaElementKind.PARAMETER;
      JavaElementKind method = JavaElementKind.fromElement(myTargetMethod);
      if (JavaPsiRecordUtil.isCanonicalConstructor(myTargetMethod)) {
        parameter = JavaElementKind.RECORD_COMPONENT;
        method = JavaElementKind.RECORD;
      }
      if (newParams.size() == 1) {
        final ParameterInfoImpl p = newParams.iterator().next();
        return QuickFixBundle
          .message("add.parameter.from.usage.text", p.getTypeText(), ArrayUtil.find(myNewParametersInfo, p) + 1, 
                   parameter.object(), method.object(), targetMethodName);
      }
      if (removedParams.size() == 1) {
        final ParameterInfoImpl p = removedParams.iterator().next();
        return QuickFixBundle.message("remove.parameter.from.usage.text", p.getOldIndex() + 1, 
                                      parameter.object(), method.object(), targetMethodName);
      }
      if (changedParams.size() == 1) {
        final ParameterInfoImpl p = changedParams.iterator().next();
        return QuickFixBundle.message("change.parameter.from.usage.text", p.getOldIndex() + 1,
                                      parameter.object(), method.object(), targetMethodName,
                                      Objects.requireNonNull(myTargetMethod.getParameterList().getParameter(p.getOldIndex())).getType().getPresentableText(),
                                      p.getTypeText());
      }
    }
    return JavaBundle.message("change.signature.from.usage.short.name", targetMethodName, buf);
  }
private @IntentionName String getShortText(final StringBuilder buf,
                                             final HashSet<? extends ParameterInfoImpl> newParams,
                                             final HashSet<? extends ParameterInfoImpl> removedParams,
                                             final HashSet<? extends ParameterInfoImpl> changedParams)