protected CompletionToken getToken(String displayName, int startPos, int cursorPos) {
Function function = FunctionRegistry.getRegistry().getFunctionByName(displayName);
if (function.isInstanceFunction() && !withInstanceFunctions) {
return null;
}
FunctionInserter inserter = functionInserterLookup.getInserter(function);
return inserter.getCompletionToken(startPos, cursorPos, inputComponent);
}