docs: public boolean containsDirectoryOfType(Class<? extends Directory> type)
      {
          for (Directory dir : _directories) {
              if (type.isAssignableFrom(dir.getClass()))
                  return true;
          }
          return false;
      }