boolean (@NotNull PsiNamedElement namedElement) { final String referenceName = getReferenceName(); if (referenceName == null) return false; final String name = namedElement.getName(); if (name == null) return false; return referenceName.equals(name) || ContainerUtil.or(PropertyKind.values(), kind -> getAccessorName(kind, referenceName).equals(name)); }