public boolean isDirectoryEmpty(@NotNull PsiDirectory psiDirectory) {
    return myFileTree.isDirectoryEmpty(psiDirectory.getVirtualFile());
  }
public boolean isDirectoryEmpty(@NotNull PsiDirectory psiDirectory)