def find_imports(self, pbds):
<EOL>imports = list(set(self.uses).difference(set(self.defines)))<EOL>for imp in imports:<EOL><INDENT>for p in pbds:<EOL><INDENT>if imp in p.defines:<EOL><INDENT>self.imports.append(p.name)<EOL>break<EOL><DEDENT><DEDENT><DEDENT>self.imports = list(set(self.imports))<EOL>for import_file in self.imports:<EOL><INDENT>self.lines.insert(<NUM_LIT:2>, '<STR_LIT>'.format(import_file))<EOL><DEDENT>
Find all missing imports in list of Pbd instances.