void (@NotNull LookupElement element) { ProgressManager.checkCanceled(); if (!element.isValid()) { LOG.error("Invalid lookup element: " + element + " of " + element.getClass() + " in " + myParameters.getOriginalFile() + " of " + myParameters.getOriginalFile().getClass()); return; } mySorter = mySorter == null ? getCompletionService().defaultSorter(myParameters, getPrefixMatcher()) : mySorter; CompletionResult matched = CompletionResult.wrap(element, getPrefixMatcher(), mySorter); if (matched != null) { element.putUserData(LOOKUP_ELEMENT_CONTRIBUTOR, myContributor); element.putUserData(LOOKUP_ELEMENT_RESULT_ADD_TIMESTAMP_MILLIS, System.currentTimeMillis()); element.putUserData(LOOKUP_ELEMENT_RESULT_SET_ORDER, myItemCounter); myItemCounter += 1; passResult(matched); } }