public static void writeWarningsToFile(Array<String> warnings, FileHandle file) {
        for (String warning : warnings) {
            String formatted = warning.replaceAll("(?<!\\[)\\[(?!\\[).*?\\]", "") + "\n";
            file.writeString(formatted, true);
        }
    }
Does not dispose pixmap.
@param pixmap
@param ninePatch
@return
core/src/com/ray3k/skincomposer/utils/Utils.java