void () { PsiClass dbl = getJavaFacade().findClass(Double.class.getName(), myScope); assertNotNull(dbl); assertEquals(dbl, ((ClsClassImpl)dbl).getMirror().getUserData(ClsElementImpl.COMPILED_ELEMENT)); GCWatcher.tracking(((ClsClassImpl)dbl).getMirror()).ensureCollected(); LeakHunter.checkLeak(dbl, ClassElement.class, element -> element.getPsi().getUserData(ClsElementImpl.COMPILED_ELEMENT) == dbl); }