private static boolean moveOutsideFile(final @NotNull Document document, int lineNumber) {
    return lineNumber < 0 || lineNumber >= document.getLineCount();
  }
private static boolean moveOutsideFile(final @NotNull Document document, int lineNumber)