void (@NotNull YAMLKeyValue keyValue) { PsiElement key = keyValue.getKey(); if (key == null) { return; } JsonPointerPosition position = walker.findPosition(keyValue, true); if (position == null) { return; } final MatchResult result = new JsonSchemaResolver(project, schema, position).detailedResolve(); for (JsonSchemaObject object : result.mySchemas) { String message = object.getDeprecationMessage(); if (message != null) { holder.registerProblem(key, YAMLBundle.message("inspections.schema.deprecation.text", keyValue.getName(), message)); return; } } }