public RefEntity @NotNull [] getSelectedElements() {
    TreePath[] selectionPaths = getSelectionPaths();
    if (selectionPaths == null) return RefEntity.EMPTY_ELEMENTS_ARRAY;
    return getElementsFromSelection(selectionPaths);
  }
public RefEntity @NotNull [] getSelectedElements()