code: public static boolean definitionMatches(Collection<String> definition, String databaseShortName, boolean returnValueIfEmptyList) {
          if ((definition == null) || definition.isEmpty()) {
              return returnValueIfEmptyList;
          }
  
          if (definition.contains("all")) {
              return true;
          }
  
          if (definition.contains("none")) {
              return false;
          }
  
          // !h2 would mean that the h2 database should be excluded
          if (definition.contains("!" + databaseShortName)) {
              return false;
          }
  
          Set<String> dbmsSupported = new HashSet<>();
          // add all dbms that do not start with ! to a list
          for (String dbms: definition) {
              if (!dbms.startsWith("!")) {
                  dbmsSupported.add(dbms);
              }
          }
  
  
          if (dbmsSupported.isEmpty() || dbmsSupported.contains(databaseShortName)) {
              return true;
          }
  
          return false;
  
      }
docs: Same logic as {@link #definitionMatches(String, liquibase.database.Database, boolean)} but with a collection of definitions rather than a comma separated list.