@Nullable
  public Object getSelectedElementIfOnlyOne() {
    final Collection<Object> selectedElements = getSelectedObjects();
    return selectedElements.size() == 1 ? ContainerUtil.getFirstItem(selectedElements) : null;
  }
@Nullable
  public Object getSelectedElementIfOnlyOne()