private static @Nullable UsageNode getSelectedUsageNode(@NotNull ShowUsagesTable table) {
    int selectedRowNumber = table.getSelectedRow();
    if (selectedRowNumber != -1) {
      Object selectedNode = table.getModel().getValueAt(selectedRowNumber, 0);
      return ObjectUtils.tryCast(selectedNode, UsageNode.class);
    }
    else {
      return null;
    }
  }
private static @Nullable UsageNode getSelectedUsageNode(@NotNull ShowUsagesTable table)