boolean (ASTNode child) { if (getChompingIndicator() == ChompingIndicator.KEEP) return true; if (isEol(child) && isEolOrNull(child.getTreeNext()) && !(YAMLTokenTypes.INDENT.equals(ObjectUtils.doIfNotNull(child.getTreePrev(), ASTNode::getElementType)) && myHost.getLinesNodes().size() <= 2)) { return false; } ASTNode next = TreeUtil.findSibling(child.getTreeNext(), NON_SPACE_VALUES); if (isEol(next) && isEolOrNull(TreeUtil.findSibling(next.getTreeNext(), NON_SPACE_VALUES)) && getChompingIndicator() == ChompingIndicator.STRIP) { return false; } return true; }