boolean (FutureFeature feature) { if (getText().contains(feature.toString())) { final List<PyFromImportStatement> fromImports = getFromImports(); for (PyFromImportStatement fromImport : fromImports) { if (fromImport.isFromFuture()) { final PyImportElement[] pyImportElements = fromImport.getImportElements(); for (PyImportElement element : pyImportElements) { final QualifiedName qName = element.getImportedQName(); if (qName != null && qName.matches(feature.toString())) { return true; } } } } } return false; }