private boolean printPageInReadAction(final Graphics2D g2d, final PageFormat pageFormat, @PropertyKey(resourceBundle = EditorBundle.BUNDLE) String progressMessageKey) {
    return ReadAction.compute(() -> {
      if (!isValidRange(myRangeToPrint)) {
        return false;
      }
      myProgress.setText(EditorBundle.message(progressMessageKey, myShortFileName, myPageIndex + 1, myNumberOfPages));
      setSegment(printPage(g2d, pageFormat, myRangeToPrint));
      return true;
    });
  }
private boolean printPageInReadAction(final Graphics2D g2d, final PageFormat pageFormat, @PropertyKey(resourceBundle = EditorBundle.BUNDLE) String progressMessageKey)