void (@NotNull PsiReferenceExpression expression) { final PsiElement psiElement = expression.resolve(); if (psiElement instanceof PsiLocalVariable || psiElement instanceof PsiParameter) { if (!CommonJavaRefactoringUtil.canBeDeclaredFinal((PsiVariable)psiElement)) { success = false; } } }