private static boolean isVariableAssignment(@NotNull PsiAssignmentExpression expression, @NotNull PsiVariable variable) {
      if (expression.getOperationTokenType() != JavaTokenType.EQ) return false;
      if (!(expression.getLExpression() instanceof PsiReferenceExpression leftExpression)) return false;
      return leftExpression.isReferenceTo(variable);
    }
private static boolean isVariableAssignment(@NotNull PsiAssignmentExpression expression, @NotNull PsiVariable variable)