Flushes the collected information

def flush(self):
        """Flushes the collected information"""
        self.__flushLevel(0)
        if self.__lastImport is not None:
            self.imports.append(self.__lastImport)