List<ReferenceType> () { ArrayList<ReferenceType> referenceTypes = new ArrayList<>(); for (Class aClass : myType.getDeclaredClasses()) { referenceTypes.add(myVirtualMachine.createReferenceType(aClass)); } return referenceTypes; }