private static PsiFileImpl getCachedFile(@NotNull TreeElement each) {
    FileElement node = (FileElement)SharedImplUtil.findFileElement(each);
    return node == null ? null : (PsiFileImpl)node.getCachedPsi();
  }
private static PsiFileImpl getCachedFile(@NotNull TreeElement each)