Extracts a
Set<String>
from series of comparisons like
"a".equals(str) || "b".equals(str) || "c".equals(str)
.