List<JavaReferenceInfo> (@NotNull EvaluationContextImpl evaluationContext) { final int limit = DebuggerUtils.isAndroidVM(myDebugProcess.getVirtualMachineProxy().getVirtualMachine()) ? AndroidUtil.ANDROID_INSTANCES_LIMIT : DEFAULT_INSTANCES_LIMIT; List<JavaReferenceInfo> instances = ContainerUtil.map( getInstancesProvider().getInstances(limit + 1), referenceInfo -> ((JavaReferenceInfo)referenceInfo) ); if (instances.size() > limit) { myWarningMessageConsumer.accept(XDebuggerBundle.message("memory.view.instances.warning.not.all.loaded", limit)); instances = instances.subList(0, limit); } return instances; }