PsiElement (@NotNull String name, @NotNull String value, PsiElement element) { YAMLKeyValue keyValue = myGenerator.createYamlKeyValue(name, StringUtil.unquoteString(value)); return element instanceof YAMLDocument || findPrecedingKeyValueWithNoValue(element) != null ? myGenerator.createDummyYamlWithText(keyValue.getText()).getDocuments().get(0).getFirstChild() : keyValue; }