void (SmartPsiElementPointer<?>... pointers) { GCWatcher.tracking(ContainerUtil.map(pointers, p -> ((SmartPointerEx<?>) p).getCachedElement())).ensureCollected(); for (SmartPsiElementPointer<?> pointer : pointers) { assertNull(((SmartPointerEx<?>)pointer).getCachedElement()); } }