List<ReferenceType> (SuspendContextImpl context) { DebugProcessImpl debugProcess = context.getDebugProcess(); VirtualMachineProxyImpl virtualMachineProxy = debugProcess.getVirtualMachineProxy(); return myClassesNames .stream() .map(name -> virtualMachineProxy.classesByName(name)) .flatMap(list -> list.stream()) .filter(cls -> cls.isPrepared()) .collect(Collectors.toList()); }