@Override
    public @NotNull PsiElement adjustValue(@NotNull PsiElement value) {
      if (!(value instanceof YAMLValue)) {
        YAMLKeyValue keyValue = findPrecedingKeyValueWithNoValue(value);
        if (keyValue == null) {
          keyValue = ObjectUtils.tryCast(value.getParent(), YAMLKeyValue.class);
        }
        if (keyValue != null) {
          YAMLValue adjustedValue = keyValue.getValue();
          if (adjustedValue != null) return adjustedValue;
          YAMLElementGenerator generator = YAMLElementGenerator.getInstance(keyValue.getProject());
          YAMLValue newValue = Objects.requireNonNull(generator.createYamlKeyValue("a", "\"\"").getValue());
          return keyValue.add(newValue);
        }
        return value;
      }
      YAMLAnchor[] anchors = PsiTreeUtil.getChildrenOfType(value, YAMLAnchor.class);
      if (anchors == null || anchors.length == 0) return value;
      PsiElement next = PsiTreeUtil.skipWhitespacesAndCommentsForward(anchors[anchors.length - 1]);
      return next == null ? value : next;
    }
@Override
    public @NotNull PsiElement adjustValue(@NotNull PsiElement value)