private function autoGetterOrSetter(FunctionModel $function, InterfaceModelInterface $parent): bool
    {
        if ($this->config->hasAuto() && $parent instanceof TraitModelInterface) {
            if ($this->getter($function, $parent)) {
                return true;
            }
            if ($this->setter($function, $parent)) {
                return true;
            }
        }
        return false;
    }