def METHOD_NAME(self, item):
    if (not isinstance(item, PerfInterval) and
        not isinstance(item, PerfList)):
        raise LnstError("{} only accepts PerfInterval or PerfList objects."
                        .format(self.__class__.__name__))