List<LookupElement> (@NotNull YAMLScalar insertedScalar, @Nullable CompletionContext completionContext) { return Stream.concat( Arrays.stream(myLiterals).map((String literal) -> createValueLookup(literal, false)), Arrays.stream(myDeprecatedLiterals).map((String literal) -> createValueLookup(literal, true)) ) .filter(Objects::nonNull) .collect(Collectors.toList()); }