public static @Nullable PsiFile findFile(@Nullable PsiElement element) {
    return element == null ? null : findFile(element.getReferences());
  }
public static @Nullable PsiFile findFile(@Nullable PsiElement element)