boolean (@NotNull YAMLScalar insertedScalar, @NotNull YamlMetaType meta, @NotNull CompletionResultSet result, @NotNull Map<String, YAMLScalar> siblings, @NotNull CompletionParameters completionParameters) { List<? extends LookupElement> lookups = meta.getValueLookups(insertedScalar, new CompletionContextImpl(completionParameters, result)); lookups.stream() .filter(lookup -> !siblings.containsKey(lookup.getLookupString())) .forEach(result::addElement); return !lookups.isEmpty(); }