def METHOD_NAME(self, text, state):
    "Generic readline completion entry point."
    buffer = readline.get_line_buffer()
    line = buffer.split()
    return (self.complete_filename(line) + [None])[state]