void (@NotNull String text, int offset, @NotNull String prefix, @NotNull CompletionResultSet result) { List<PyDebugValue> values = getAvailableValues(); values.sort(Comparator.comparing(XNamedValue::getName)); for (int i = 0; i < values.size(); i++) { PyDebugValue value = values.get(i); LookupElementBuilder element = LookupElementBuilder.create(value.getName()).withTypeText(value.getType(), true); result.addElement(PrioritizedLookupElement.withPriority(element, -i)); } }