void (@NotNull Request request, @Nullable AbstractResponseToRequestHandler<? extends Response> handler) { if (handler != null) { myResponseProcessor.registerHandler(request.getId(), handler); } try { myRequests.put(request); } catch (InterruptedException ignored) { } }