registerEventListener(project);
// toggle value
final Content content = toolWindow.getContentManager().getContent(0);
if (content != null) {
final FindBugsPreferences preferences = getPluginInterface(project).getPreferences();
final String groupByProperty = preferences.getProperty(FindBugsPreferences.TOOLWINDOW_GROUP_BY, GroupBy.BugCategory.name());
final boolean equals = GroupBy.Priority.name().equals(groupByProperty);
final ToolWindowPanel panel = (ToolWindowPanel) content.getComponent();
final GroupBy[] sortOrderGroup = GroupBy.getSortOrderGroup(GroupBy.Priority);
if(equals && !Arrays.equals(panel.getBugTreePanel().getGroupBy(), sortOrderGroup)) {