TokenSequence<LatteTokenId> sequence2 = LexUtils.getSequence(token);
// determining if caret is positioned in specially treated macros:
// (p)link, widget/control, extends, include
// which provide uncommon completion (presenter names, components, layouts)
ParamCompletionProcessor pcp = new ParamCompletionProcessor();
completionResultSet.addAllItems(pcp.process(sequence, sequence2, document, caretOffset));
// moving sequence for inside macro completion
sequence2.move(caretOffset - sequence.offset());
if (sequence2.movePrevious() || sequence2.moveNext()) {