def collection(self, attribute):
        """Returns the collection corresponding the attribute name."""
        return {
            "dependencies": self.dependencies,
            "publics": self.publics,
            "members": self.members,
            "types": self.types,
            "executables": self.executables,
            "interfaces": self.interfaces
        }[attribute]
Returns the collection corresponding the attribute name.