private VariantInfo getPreviousVariant() {
      int currentIndex = myVariants.indexOf(myCurrentVariant);
      return myVariants.get(currentIndex > 0 ? currentIndex - 1 : myVariants.size() - 1);
    }
private VariantInfo getPreviousVariant()