docs: @SuppressWarnings({"unchecked"})
      public final boolean matches(Object item) {
          return item != null
                  && expectedType.isInstance(item)
                  && matchesSafely((T) item);
      }