boolean (@NotNull ASTNode node, @NotNull Ref<TextRange> rangeRef, @NotNull IElementType siblingType) { if (node.getPsi() instanceof PsiWhiteSpace) { return !hasMinLineBreaks(node, 2); } else if (node.getElementType() == siblingType) { rangeRef.set(rangeRef.get().union(node.getTextRange())); } return false; }