String (@Nullable YAMLValue itemValue) { if (itemValue instanceof YAMLScalar) { return ((YAMLScalar)itemValue).getTextValue(); } else if (itemValue instanceof YAMLAlias) { return YAMLStructureViewFactory.getAliasPresentableText((YAMLAlias)itemValue); } else { return YAMLBundle.message("YAMLStructureViewSequenceItem.element.name"); } }