docs: public LogEntry getLogEntry(long entryIndex) {
          if (entryIndex < 1) {
              throw new IllegalArgumentException("Illegal index: " + entryIndex + ". Index starts from 1.");
          }
          if (!containsLogEntry(entryIndex)) {
              return null;
          }
  
          LogEntry logEntry = logs.read(toSequence(entryIndex));
          assert logEntry.index() == entryIndex : "Expected: " + entryIndex + ", Entry: " + logEntry;
          return logEntry;
      }