boolean (@NotNull ASTNode node) { final PsiElement psi = node.getPsi(); FoldingBuilder foldingBuilder = LanguageFolding.INSTANCE.forLanguage(psi.getLanguage()); if (foldingBuilder == this || foldingBuilder instanceof CompositeFoldingBuilder) { return isPsiElementCollapsedByDefault(psi); } return foldingBuilder.isCollapsedByDefault(node); }