PsiExpression (PsiExpression expression, @NotNull TypeEvaluator evaluator) { PsiExpression replaced = super.replace(expression, evaluator); boolean atLeastJava8 = PsiUtil.isLanguageLevel8OrHigher(replaced); for (PsiVariable var : myVariablesToMakeFinal) { if (!atLeastJava8 || !HighlightControlFlowUtil.isEffectivelyFinal(var, replaced, null)) { VariableAccessFromInnerClassFix.fixAccess(var, replaced); } } return replaced; }