_enabled = tree.isCollapsed(1) && tree.getRowCount() > 1;
presentation.setEnabled(toolWindow.isAvailable() && isEnabled());
presentation.setVisible(true);
}
} catch (final Throwable e) {
final FindBugsPluginException processed = FindBugsPluginImpl.processError("Action update failed", e);
LOGGER.error("Action update failed", processed);
}
}