public static Object getFileLookupItem(PsiElement psiElement) {
    if (!(psiElement instanceof PsiFile file) || !(psiElement.isPhysical())) {
      return psiElement;
    }

    return _getLookupItem(file, file.getName(), file.getIcon(0));
  }
public static Object getFileLookupItem(PsiElement psiElement)