boolean (final PsiAssignmentExpression expression) { if (expression.getLExpression() instanceof PsiReferenceExpression lExpr) { final PsiExpression rExpr = expression.getRExpression(); if (rExpr == null) return false; final PsiElement psiElement = lExpr.resolve(); if (psiElement instanceof PsiField field) { if (myClass.getManager().areElementsEquivalent(field.getContainingClass(), myClass)) { final List<PsiReferenceExpression> localVarRefs = new ArrayList<>(); final PsiExpression initializer; try { initializer = (PsiExpression) replaceParameterReferences(rExpr.copy(), localVarRefs, false); } catch (IncorrectOperationException e) { LOG.error(e); return false; } if (!localVarRefs.isEmpty()) { return true; } myFieldInitializers.put(field.getName(), initializer); } } else if (psiElement instanceof PsiVariable) { return true; } } return false; }