@Override
  public PsiDirectory @NotNull [] getSubdirectories() {
    VirtualFile[] files = myFile.getChildren();
    ArrayList<PsiDirectory> dirs = new ArrayList<>();
    for (VirtualFile file : files) {
      PsiDirectory dir = myManager.findDirectory(file);
      if (dir != null) {
        dirs.add(dir);
      }
    }
    return dirs.toArray(PsiDirectory.EMPTY_ARRAY);
  }
@Override
  public PsiDirectory @NotNull [] getSubdirectories()