void (@NotNull Project project, @NotNull ProblemDescriptor descriptor) { YAMLKeyValue keyVal = (YAMLKeyValue)descriptor.getPsiElement().getParent(); if (keyVal == null || keyVal.getParentMapping() == null) { return; } keyVal.getParentMapping().deleteKeyValue(keyVal); }