boolean (@NotNull ASTNode node, @Nullable FoldingBuilder builder) { if (builder == null) return false; if (DumbService.isDumbAware(builder)) return true; Project project = getProjectByNode(node); return project == null || !DumbService.isDumb(project); }