public function classAndMembersAnnotations(string $class): array
    {
        $index = static::CLASS_AND_MEMBERS_CACHE . $class;

        if (isset(self::$annotations[$index])) {
            return self::$annotations[$index];
        }

        return self::$annotations[$index] = array_merge(
            $this->classAnnotations($class),
            $this->classMembersAnnotations($class)
        );
    }