boolean (List<Indent.Type> indents) { Indent.Type outerMostIndent = indents.get(0); if (outerMostIndent != Indent.Type.NONE && outerMostIndent != Indent.Type.NORMAL) { return false; } List<Indent.Type> innerIndents = indents.subList(1, indents.size()); for (Indent.Type indent : innerIndents) { if (indent != Indent.Type.NONE && indent != Indent.Type.NORMAL && indent != Indent.Type.CONTINUATION_WITHOUT_FIRST) { //continuation without first here because it is CONTINUATION only if it's owner is not the first child return false; } } return true; }