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