int (int indent, int anchorIndex) { int result = anchorIndex; for (int i = anchorIndex; i < myTokenQueue.size(); i++) { final PendingToken token = myTokenQueue.get(i); if (token instanceof PendingCommentToken) { if (((PendingCommentToken)token).getIndent() < indent) { break; } result = i + 1; } } return result; }