LookupElement (String name, Function functionDecl) { final String presentation = functionDecl.buildSignature(); final String returnType = functionDecl.getReturnType().getName(); final boolean hasParams = functionDecl.getParameters().length > 0; return new FunctionLookup(name, presentation, returnType, hasParams); }