import javaparser.GenericClass; import java.util.List; public class GenericClassNavigator { public static void doubleTyped() { new GenericClass().genericMethodWithDoubleTypedReturnType(); } public static void nestedTyped() { new GenericClass().genericMethodWithNestedReturnType(); } public static void simple() { new GenericClass>>().get(); } public static void input() { GenericClass.copy(new GenericClass>()); } public void complex() { new GenericClass().complexGenerics(); } public void nestedTypes() { GenericClass.asList(GenericClass.Bar.CONSTANT); } }