public static String tableFromStatement(String statement) {
        Matcher table = CREATE_TABLE_PATTERN.matcher(statement);
        if (table.matches()) {
            return table.group(1).toLowerCase(Locale.ROOT);
        }
        Matcher index = CREATE_INDEX_PATTERN.matcher(statement);
        if (index.matches()) {
            return index.group(1).toLowerCase(Locale.ROOT);
        }
        throw new IllegalArgumentException("Unknown statement type: " + statement);
    }
Parses a schema file to a list of SQL statements

@param is the input stream to read from
@return a list of statements
@throws IOException if an error occurs whilst reading the file
common/src/main/java/me/lucko/luckperms/common/storage/implementation/sql/SchemaReader.java