PsiAssignmentExpression (@Nullable PsiElement anchor) { if (!(anchor instanceof PsiExpressionStatement statement)) return null; return ObjectUtils.tryCast(statement.getExpression(), PsiAssignmentExpression.class); }