@classmethod
def set_dict(cls, obj, func, value):
    """
        If collection is active, adds the value to the class dictionary.

        Parameters
        ----------
        obj : object
            The object under which the values will be stored.
        func : method
            The object method to which the value corresponds.
        value
            The result of the method.
        """
    if cls.IS_ACTIVE:
        odict = cls.CLASS_DICT
        if obj not in odict:
            odict[obj] = {}
        odict[obj][func.__name__] = value
