def get_compatible_generator_action(self, filename):
<EOL>for action in self.__generator_actions:<EOL><INDENT>if action.act_on_file(filename):<EOL><INDENT>return action<EOL><DEDENT><DEDENT>return None<EOL>
Return the **first** compatible :class:`GeneratorAction` for a given filename or ``None`` if none is found.

Args:
    filename (str): The filename of the template to process.