@staticmethod
def _checkMemberName(name):
    """
        See if a member name indicates that it should be private.

        Private variables in Python (starting with a double underscore but
        not ending in a double underscore) and bed lumps (variables that
        are not really private but are by common convention treated as
        protected because they begin with a single underscore) get Doxygen
        tags labeling them appropriately.
        """
    assert isinstance(name, str)
    restrictionLevel = None
    if not name.endswith('__'):
        if name.startswith('__'):
            restrictionLevel = 'private'
        elif name.startswith('_'):
            restrictionLevel = 'protected'
    return restrictionLevel
