void (long pageNumber) { long pagesAmount; try { pagesAmount = dataProvider.getPagesAmount(); } catch (IOException e) { LOG.info(e); return; } if (pageNumber < 0 || pageNumber > pagesAmount) { LOG.warn("[Large File Editor Subsystem] EditorModel.fireGlobalScrollBarValueChangedFromOutside(pageNumber):" + " Illegal argument pageNumber. Expected: 0 < pageNumber <= pagesAmount." + " Actual: pageNumber=" + pageNumber + " pagesAmount=" + pagesAmount); return; } targetVisiblePosition.set(pageNumber, 0); update(); }