void (@NotNull YAMLKeyValue keyValue) { if (keyValue.getKey() == null) { return; } YamlMetaTypeProvider.MetaTypeProxy meta = myMetaTypeProvider.getKeyValueMetaType(keyValue); if (meta != null && meta.getField().isDeprecated()) { String msg = YAMLBundle.message("YamlDeprecatedKeysInspectionBase.deprecated.key", keyValue.getKeyText()); myProblemsHolder.registerProblem(keyValue.getKey(), msg, ProblemHighlightType.LIKE_DEPRECATED); } }