void (@NotNull PsiAssignmentExpression expression) { super.visitAssignmentExpression(expression); if (IGNORE_UNCHECKED_ASSIGNMENT) return; if (!"=".equals(expression.getOperationSign().getText())) return; PsiExpression lExpr = expression.getLExpression(); PsiExpression rExpr = expression.getRExpression(); if (rExpr == null) return; PsiType lType = lExpr.getType(); PsiType rType = rExpr.getType(); if (rType == null) return; checkRawToGenericsAssignment(rExpr, rExpr, lType, rType, () -> { if (myOnTheFly && lExpr instanceof PsiReferenceExpression) { PsiElement element = ((PsiReferenceExpression)lExpr).resolve(); if (element instanceof PsiVariable) { return getChangeVariableTypeFixes((PsiVariable)element, rType); } } return LocalQuickFix.EMPTY_ARRAY; }); }