@Nullable
  static PsiElement getElement(Pointer<?> item) {
    Object o = item.dereference();
    return o instanceof PsiElement ? (PsiElement)o : null;
  }
@Nullable
  static PsiElement getElement(Pointer<?> item)