code: public DatabaseChangeLogLock[] listLocks() throws LiquibaseException {
          checkLiquibaseTables(false, null, new Contexts(), new LabelExpression());
  
          return LockServiceFactory.getInstance().getLockService(database).listLocks();
      }
docs: Display change log lock information.