*/
static GadgetViewType[] getViewTypes(TreeLogger logger,
JClassType gadgetSourceType, TypeOracle typeOracle)
throws UnableToCompleteException {
List<GadgetViewType> result = new ArrayList<GadgetViewType>();
Content content = gadgetSourceType.getAnnotation(Content.class);
if (content != null) {
for (Class<? extends ContentSection<?>> contentSectionClass : content.contents()) {
String viewTypeName = contentSectionClass.getName().replaceAll("\\$",
".");
JClassType viewType = typeOracle.findType(viewTypeName);
if (viewType != null) {
ContentType contentType = viewType.getAnnotation(ContentType.class);