boolean (@NotNull ASTNode place) { final ASTNode treeParent = place.getTreeParent(); if (!(treeParent.getElementType() instanceof IXmlTagElementType)) return false; while(place != null){ if(place.getElementType() == XmlTokenType.XML_TAG_END) return true; place = place.getTreePrev(); } return false; }