private static void AppendValueIfRequired(StringBuilder sb, bool appendValue, string value) { if (appendValue) { AppendValueWithSeparatorIfRequired(sb, value); } }