package me.tomassetti.symbolsolver.javaparser; import java.util.Optional; import java.util.List; import java.util.Arrays; public final class Generics { Optional s; Optional i; Optional g; } public final class SomeCollection { public A a; public List as; public void foo1(){ new SomeCollection().a; } public void foo2(){ new SomeCollection().as; } public List foo3(){ return Arrays.asList(new Long[]{1L,2L}); } }