Comparable (@NotNull final LookupElement item, @NotNull final CompletionLocation location) { // don't extract variable from getPsiElement to avoid excessive memory usage if (item.getPsiElement() != null) { return PsiProximityComparator.getProximity((NullableComputable<PsiElement>)() -> item.getPsiElement(), location.getCompletionParameters().getPosition(), location.getProcessingContext()); } return null; }