'Adds an element to the trace indicating that a class was instantiated.
Args:
component: The result of instantiating the class.
target: The name of the class.
args: The args consumed in order to instantiate the class.
filename: The file in which the class is defined, or None if N/A.
lineno: The line number on which the class is defined, or None if N/A.
capacity: (bool) Whether cls.__init__ could have accepted additional args.'

def AddInstantiatedClass(self, component, target, args, filename, lineno, capacity):

    element = FireTraceElement(component=component, action=INSTANTIATED_CLASS, target=target, args=args, filename=filename, lineno=lineno, capacity=capacity)
    self.elements.append(element)
