Extracts Set<String> from a series of comparisons, for example: "a".equals(str) || "b".equals(str) || "c".equals(str).