protected function _getAssociationsList($entity, array $associationTypes = [])
    {
        $table = $this->_controller()->loadModel();
        $associations = $table->associations();

        $result = [];
        foreach ($associations as $association) {
            $associationType = $association->type();

            if (empty($associationTypes)) {
                array_push($result, $association->getName());
                continue;
            }

            if (in_array($association->type(), $associationTypes)) {
                array_push($result, $association->getName());
            }
        }

        return $result;
    }