Collection<LocalQuickFix> (@NotNull final PyImportStatementBase importStatementBase) { final List<String> names = importStatementBase.getFullyQualifiedObjectNames(); final List<LocalQuickFix> result = new ArrayList<>(names.size()); if (importStatementBase instanceof PyFromImportStatement && names.isEmpty()) { final QualifiedName qName = ((PyFromImportStatement)importStatementBase).getImportSourceQName(); if (qName != null) { result.add(new GenerateBinaryStubsFix(importStatementBase, qName.toString())); } } for (final String qualifiedName : names) { result.add(new GenerateBinaryStubsFix(importStatementBase, qualifiedName)); } return result; }