boolean (@NotNull PsiElement element, @NotNull ResolveState state) { if (myHint != null && element instanceof PsiNamedElement) { final String expectedName = myHint.getName(state); final String elementName = ((PsiNamedElement)element).getName(); if (expectedName != null && !expectedName.equals(elementName)) { return true; } } return super.execute(element, state); }