void (final @NotNull PsiReferenceExpression expression) { final PsiElement psiElement = expression.resolve(); if (psiElement instanceof PsiLocalVariable) { if (visibleLocalVariables != null) { if (!visibleLocalVariables.contains(((PsiLocalVariable)psiElement).getName())) { rv.set(Boolean.TRUE); } } } else if (psiElement instanceof PsiMethod) { rv.set(Boolean.TRUE); //final PsiMethod method = (PsiMethod)psiElement; //if (!isSimpleGetter(method)) { // rv.set(Boolean.TRUE); //} } if (!rv.get().booleanValue()) { super.visitReferenceExpression(expression); } }