Collection<String> (@NotNull YAMLMapping mapping, @NotNull YamlMetaType metaClass) { Set<String> existingKeys = mapping.getKeyValues().stream().map(it -> it.getKeyText().trim()).collect(Collectors.toSet()); return metaClass.computeMissingFields(existingKeys); }