boolean (@NotNull ASTNode node) { if (isCustomFoldingCandidate(node)) { String nodeText = node.getText(); CustomFoldingProvider defaultProvider = getDefaultProvider(nodeText); return defaultProvider != null && defaultProvider.isCustomRegionStart(nodeText); } return false; }