boolean (PsiElement element) { if (PsiUtil.isJavaToken(element, JavaTokenType.STRING_LITERAL)) { PsiReference[] references = element.getParent().getReferences(); return ContainerUtil.findInstance(references, PropertyReference.class) != null; } return element instanceof IProperty; }