boolean () { Reference<StubBasedPsiElementBase<?>>[] refToPsi = myRefToPsi; if (refToPsi != null) { for (Reference<StubBasedPsiElementBase<?>> t : refToPsi) { if (t != null && t.get() != null) { return true; } } } return false; }