code: public boolean dependsOn(Extension extension, AddOn addOn) {
          String classname = extension.getClass().getCanonicalName();
  
          for (ExtensionWithDeps extensionWithDeps : extensionsWithDeps) {
              if (extensionWithDeps.getClassname().equals(classname)) {
                  return dependsOn(extensionWithDeps.getDependencies(), addOn);
              }
          }
          return false;
      }
docs: Tells whether or not the given {@code extension} has a (direct) dependency on the given {@code addOn} (including
  version).
  
  @param extension the extension that will be checked
  @param addOn the add-on that will be checked in the dependencies on the extension
  @return {@code true} if the extension depends on the given add-on, {@code false} otherwise.
  @since 2.4.0