code: private function registerEffect(string $type, string $class) : void
      {
          if (\class_exists($class)) {
              $interfaces = \class_implements($class);
              if (\in_array(Effect::class, $interfaces, true)) {
                  $this->effectsMap[$type] = $class;
              } else {
                  throw new ConfigException("Class {$class} don't implement interface " . Effect::class);
              }
          } else {
              throw new ConfigException("Class {$class} not found");
          }
      }
docs: Register custom effects or override default effects
  
  @param string $type
  @param string $class class which implements \LireinCore\Image\Effect interface
  @throws ConfigException