void (@NotNull Project project, @NotNull Editor editor, int time, boolean hasModifiers, @NotNull Caret caret) { runWithSpan(completionTracer, "invokeCompletion", (span) -> { span.setAttribute("project", project.getName()); span.setAttribute("caretOffset", caret.hasSelection() ? caret.getSelectionStart() : caret.getOffset()); invokeCompletion(project, editor, time, hasModifiers, caret); }); }