private static boolean isParameterModification(@NotNull PsiElement pattern, @NotNull PsiElement candidate) {
    if (pattern instanceof PsiAssignmentExpression) {
      final PsiExpression lExpression = PsiUtil.skipParenthesizedExprDown(((PsiAssignmentExpression)pattern).getLExpression());
      if (lExpression instanceof PsiReferenceExpression &&
          lExpression.getType() instanceof PsiPrimitiveType &&
          ((PsiReferenceExpression)lExpression).resolve() instanceof PsiParameter) {
        return true;
      }
    }
    else if (pattern instanceof PsiUnaryExpression && candidate instanceof PsiUnaryExpression) {
      if (checkParameterModification(((PsiUnaryExpression)pattern).getOperand(), ((PsiUnaryExpression)pattern).getOperationTokenType(),
                                     ((PsiUnaryExpression)candidate).getOperand())) {
        return true;
      }
    }
    return false;
  }
private static boolean isParameterModification(@NotNull PsiElement pattern, @NotNull PsiElement candidate)