public SemanticEditorPosition getPosition(@NotNull Editor editor, int offset) {
    return SemanticEditorPosition.createEditorPosition(editor, offset,
                                                       (_editor, _offset) -> getIteratorAtPosition(_editor, _offset),
                                                       tokenType -> mapType(tokenType));
  }
public SemanticEditorPosition getPosition(@NotNull Editor editor, int offset)