@Override
  public boolean isDirectory(@NotNull VirtualFile file) {
    var attributes = getAttributes(file);
    return attributes != null && attributes.isDirectory();
  }
@Override
  public boolean isDirectory(@NotNull VirtualFile file)