private void processParameterUsage(ParameterUsageInfo usage) {
    final PsiReference reference = usage.getReferenceExpression();
    if (reference instanceof PsiReferenceExpression referenceExpression) {
      if (referenceExpression.getParent() instanceof PsiReferenceExpression parentReference) {
        PsiExpression qualifier = calculateQualifier(parentReference);
        if (qualifier == null) referenceExpression.delete();
        else referenceExpression.replace(qualifier);
      }
      else {
        referenceExpression.replace(createThisExpression());
      }
    } else {
      final PsiElement element = reference.getElement();
      if (element instanceof PsiDocParamRef) {
        element.getParent().delete();
      }
    }
  }
private void processParameterUsage(ParameterUsageInfo usage)