void (Consumer<? super StubBasedPsiElementBase<?>> consumer) { assert myRefToPsi != null; for (Reference<StubBasedPsiElementBase<?>> t : myRefToPsi) { StubBasedPsiElementBase<?> psi = t == null ? null : t.get(); if (psi != null) { consumer.accept(psi); } } }