String (@NotNull YAMLKeyValue kv) { YAMLValue value = kv.getValue(); if (value instanceof YAMLScalar) { return kv.getValueText(); } else if (value instanceof YAMLAlias) { return YAMLStructureViewFactory.getAliasPresentableText((YAMLAlias)value); } else { return null; } }