protected void validateEmptyValue(@NotNull Field feature, @NotNull YAMLKeyValue withoutValue) {
      assert withoutValue.getKey() != null; //would not be able to find `this` as a type

      if (!feature.isEmptyValueAllowed()) {
        InspectionManager manager = myProblemsHolder.getManager();
        YAMLValue value = withoutValue.getValue();

        ProblemDescriptor eolError = manager.createProblemDescriptor(
          value == null ? withoutValue.getKey() : value,
          YAMLBundle.message("YamlUnknownValuesInspectionBase.error.value.is.required", ArrayUtil.EMPTY_OBJECT_ARRAY),
          LocalQuickFix.EMPTY_ARRAY,
          ProblemHighlightType.GENERIC_ERROR_OR_WARNING,
          myProblemsHolder.isOnTheFly(), value == null);
        myProblemsHolder.registerProblem(eolError);
      }
    }
protected void validateEmptyValue(@NotNull Field feature, @NotNull YAMLKeyValue withoutValue)