### Question:
Util { static String extractSet(String rawType) { String setType = rawType.substring(14, rawType.length() - 1); if (setType.startsWith("? extends")) { return setType.substring(10); } return setType; }  static String getNamed(Element p); static String addForInterface(String interfaceType); static String trimMethod(String method);  }### Answer:
@Test public void extractSet() { assertEquals("Foo", Util.extractSet("Set<? extends Foo>")); assertEquals("org.foo.Bar", Util.extractSet("Set<? extends org.foo.Bar>")); }