void (@NotNull YamlMetaTypeProvider.MetaTypeProxy meta, @NotNull YAMLValue value) { if (meta.getField().hasRelationSpecificType(Field.Relation.OBJECT_CONTENTS)) { return; } boolean actuallyOne = value instanceof YAMLScalar || (value instanceof YAMLMapping && !meta.getField().isAnyNameAllowed()); if (actuallyOne) { myProblemsHolder.registerProblem(value, YAMLBundle.message("YamlUnknownValuesInspectionBase.error.array.is.required")); } }