def METHOD_NAME(self, context):
    add = self.mk_input_sockets
    remove = self.rm_input_sockets
    current_mode = socket_count_to_mode.get(len(self.inputs))
    new_mode = fractal_type_to_mode.get(self.fractal_type)
    actionables = {
        'AB': (add, ('offset',)),
        'BA': (remove, ('offset',)),
        'BC': (add, ('gain',)),
        'CB': (remove, ('gain',)),
        'AC': (add, ('offset', 'gain')),
        'CA': (remove, ('offset', 'gain'))
        }.get(current_mode + new_mode)
    if actionables:
        socket_func, names = actionables
        socket_func(*names)
    updateNode(self, context)