resolve inner references without costly ClassPool usage