String (@NotNull TreeElement element) { if (!(element instanceof StructureViewTreeElement)) { return null; } Object value = ((StructureViewTreeElement)element).getValue(); if (!(value instanceof IProperty)) { return null; } return ((IProperty) value).getUnescapedKey(); }