private static boolean isVariableInitializer(PsiExpression expression) {
        final PsiElement parent = expression.getParent();
        if (!(parent instanceof PsiVariable variable)) {
          return false;
        }
        final PsiExpression initializer = variable.getInitializer();
        return initializer == expression;
      }
private static boolean isVariableInitializer(PsiExpression expression)