boolean (PyImportStatementBase importStatement, Set<PyImportedNameDefiner> unusedImports) { final PyImportElement[] elements = importStatement.getImportElements(); for (PyImportElement element : elements) { if (!unusedImports.contains(element)) { return false; } } return true; }