code: @Nullable
    static UfsJournalFile decodeLogFile(UfsJournal journal, String filename) {
      URI location = URIUtils.appendPathOrDie(journal.getLogDir(), filename);
      try {
        String[] parts = filename.split("-");
  
        // There can be temporary files in logs directory. Skip them.
        if (parts.length != 2) {
          return null;
        }
        long start = Long.decode(parts[0]);
        long end = Long.decode(parts[1]);
        return UfsJournalFile.createLogFile(location, start, end);
      } catch (IllegalStateException e) {
        LOG.error("Illegal journal file {}.", location);
        throw e;
      } catch (NumberFormatException e) {
        // There can be temporary files (e.g. created for rename).
        return null;
      }
    }
docs: Decodes a checkpoint or a log file name into a {@link UfsJournalFile}.
  
  @param journal the UFS journal instance
  @param filename the filename
  @return the instance of {@link UfsJournalFile}, null if the file invalid