boolean () { final PsiElement parent = myNode.getTreeParent().getPsi(); return parent instanceof RncDocument || parent instanceof RncFile || parent instanceof RncGrammar && parent.getParent() instanceof RncDocument; }