private void recalculateIndexes() {
    myIndexes.clear();

    for (int i = 0, count = getTabCount(); i < count; i++) {
      myIndexes.put((IdeFrameImpl)getTabAt(i).getObject(), i);
    }
  }
private void recalculateIndexes()