String (@NotNull String value, @Nullable Character quoteStyle) { if (quoteStyle != null) { if (quoteStyle == '\'') { return quoteStyle + StringUtil.replace(value, "'", "&apos;") + quoteStyle; } else if (quoteStyle == '"') { return quoteStyle + StringUtil.replace(value, "\"", "&quot;") + quoteStyle; } } return quoteValue(value); }