String (@NotNull String value) { final char quoteChar; if (!value.contains("\"")) { quoteChar = '"'; } else if (!value.contains("'")) { quoteChar = '\''; } else { quoteChar = '"'; value = StringUtil.replace(value, "\"", "&quot;"); } return quoteChar + value + quoteChar; }