List<LookupElement> (@NotNull final Map<String, PyStringFormatParser.SubstitutionChunk> chunks) { return chunks.keySet().stream() .map(PyStringFormatCompletionContributor::createLookUpElement) .collect(Collectors.toList()); }