boolean (PsiElement element) { if (element instanceof IProperty) { return true; } if (element instanceof PomTargetPsiElement) { return ((PomTargetPsiElement)element).getTarget() instanceof XmlProperty; } if (element instanceof XmlTag && ((XmlTag)element).getName().equals(XmlPropertiesFileImpl.ENTRY_TAG_NAME)) { return PropertiesImplUtil.isPropertiesFile(element.getContainingFile()); } return false; }