从一系列比较中提取
Set<String>
,例如:
"a".equals(str) || "b".equals(str) || "c".equals(str)
。