void (long pageNumber, Page page) { ApplicationManager.getApplication().invokeLater(() -> { if (page == null) { LOG.warn("page with number " + pageNumber + " is null."); return; } pagesCash.add(page); numbersOfRequestedForReadingPages.remove(pageNumber); requestUpdate(); }); }