code: public static void setVisible(HTMLElement element, boolean visible) {
          if (element != null) {
              element.style.display = visible ? "" : "none";
          }
      }
docs: Shows / hide the specified element by modifying the {@code display} property.