@staticmethod<EOL><INDENT>def _expand_error_codes(code_parts):<DEDENT>
codes = set(ErrorRegistry.get_error_codes())<EOL>expanded_codes = set()<EOL>try:<EOL><INDENT>for part in code_parts:<EOL><INDENT>part = part.strip()<EOL>if not part:<EOL><INDENT>continue<EOL><DEDENT>codes_to_add = {code for code in codes<EOL>if code.startswith(part)}<EOL>if not codes_to_add:<EOL><INDENT>log.warning(<EOL>'<STR_LIT>'<EOL>'<STR_LIT>', part)<EOL><DEDENT>expanded_codes.update(codes_to_add)<EOL><DEDENT><DEDENT>except TypeError as e:<EOL><INDENT>raise IllegalConfiguration(e)<EOL><DEDENT>return expanded_codes<EOL>
Return an expanded set of error codes to ignore.