public static void setVisibility(Class extension, boolean isVisible) {
   for (GuiExtension e : getGui()) {
     if (e.getClass().equals(extension)) {
       e.setVisibility(isVisible);
       break;
     }
   }
 }
  public static GuiExtension getInstance(Class extension) {
    for (GuiExtension e : getGui()) {
      if (e.getClass().equals(extension)) {
        return e;
      }
    }

    return null;
  }
  public static boolean hasPopupOpen() {
    for (GuiExtension e : getGui()) {
      if (e instanceof IPopupIDoItellYou) {
        if (e.isVisible()) {
          return true;
        }
      }
    }

    return false;
  }