boolean (@NotNull ASTNode node, int minCount) { final ASTNode treePrev = node.getTreePrev(); return (treePrev != null && isWhitespaceWithLineBreaks(TreeUtil.findLastLeaf(treePrev), minCount)) || // Can happen, e.g. when you delete a statement from the beginning of a statement list isWhitespaceWithLineBreaks(node.getFirstChildNode(), minCount); }