boolean (@NotNull XmlText paramValue) { PsiElement prevSibling = paramValue.getPrevSibling(); if (!(prevSibling instanceof LeafPsiElement) || ((LeafPsiElement)prevSibling).getElementType() != XmlTokenType.XML_TAG_END) { return false; } PsiElement nextSibling = paramValue.getNextSibling(); if (!(nextSibling instanceof LeafPsiElement) || ((LeafPsiElement)nextSibling).getElementType() != XmlTokenType.XML_END_TAG_START) { return false; } return true; }