docs: private boolean isUnrecoverable(Throwable t) {
          if (t != null && t.getCause() != null) {
              Throwable cause = t.getCause();
              if (cause instanceof StackOverflowError) {
                  return true;
              } else if (cause instanceof VirtualMachineError) {
                  return true;
              } else if (cause instanceof ThreadDeath) {
                  return true;
              } else if (cause instanceof LinkageError) {
                  return true;
              }
          }
          return false;
      }