boolean (@NotNull PsiFile psiFile, int selectionStart, int selectionEnd) { final var parent = findParent(psiFile, selectionStart, selectionEnd); if (parent == null) { return false; } final var header = PsiTreeUtil.getParentOfType(parent, MarkdownHeader.class, false); if (header != null) { return header.getLevel() != 6; } return true; }