code: public function getRequiredParams() {
          $requiredParams = [];
          
          foreach ($this->parameters as $parameter) {
              if ($parameter->getIsOptional() || $parameter->hasDefault()) {
                  continue;
              }
              $requiredParams[]  = $parameter;
          }
  
          return $requiredParams;
      }
docs: Get all the params that are either not optional and don't have a default value
  @return \ArtaxServiceBuilder\Parameter[]