id navigateToTab(@NotNull AnAction navigationAction) {
    int currIndex = getIndexOf(getSelectedInfo());
    if (currIndex >= 0) {
      int newIndex = currIndex;
      if (navigationAction instanceof PreviousTabAction) {
        newIndex = (currIndex > 0 ? currIndex : getTabCount()) - 1;
      }
      else if (navigationAction instanceof NextTabAction) {
        newIndex = currIndex < getTabCount() - 1 ? currIndex + 1 : 0;
      }
      if (newIndex != currIndex) {
        TabInfo newInfo = getTabAt(newIndex);
        select(newInfo, true);
      }
    }
  }
}
id navigateToTab(@NotNull AnAction navigationAction) {