### Question:
GenericType { static GenericType maybe(String paramType) { return isGeneric(paramType) ? parse(paramType) : null; }    }### Answer:
@Test public void maybe() { assertThat(GenericType.maybe("java.lang.List<Foo>").getMainType()).isEqualTo("java.lang.List"); assertThat(GenericType.maybe("java.lang.List")).isNull(); }