DebugProcessEvents (Map<String, ReferenceType> referencesByName) { return new DebugProcessEvents(getProject()) { private VirtualMachineProxyImpl virtualMachineProxy; @NotNull @Override public VirtualMachineProxyImpl getVirtualMachineProxy() { if (virtualMachineProxy == null) { virtualMachineProxy = new MockVirtualMachineProxy(this, referencesByName); } return virtualMachineProxy; } @NotNull @Override public GlobalSearchScope getSearchScope() { return GlobalSearchScope.allScope(getProject()); } }; }