code: public static IOSafeTerminal createDoNothingOnExceptionAdapter(Terminal terminal) {
          if (terminal instanceof ExtendedTerminal) { // also handle Runtime-type:
              return createDoNothingOnExceptionAdapter((ExtendedTerminal)terminal);
          } else {
              return new IOSafeTerminalAdapter(terminal, new DoNothingAndOrReturnNull());
          }
      }
docs: Creates a wrapper around a Terminal that exposes it as a IOSafeTerminal. If any IOExceptions occur, they will be
  silently ignored and for those method with a non-void return type, null will be returned.
  @param terminal Terminal to wrap
  @return IOSafeTerminal wrapping the supplied terminal