boolean (@NotNull Project project, Editor editor, PsiFile file) { XmlTag tag = getTag(editor, file); if (tag == null) return false; int offset = editor.getCaretModel().getOffset(); ASTNode startEnd = XmlChildRole.START_TAG_END_FINDER.findChild(tag.getNode()); if (startEnd == null || offset <= startEnd.getStartOffset()) return true; ASTNode endStart = XmlChildRole.CLOSING_TAG_START_FINDER.findChild(tag.getNode()); if (endStart == null || offset >= startEnd.getStartOffset()) return true; return false; }