if(!importsOnly && node instanceof DefUnit) {
DefUnit defunit = (DefUnit) node;
evaluateDefUnitForSearch(search, defunit);
}
else if(importsOnly && node instanceof DeclarationImport) {
DeclarationImport declImport = (DeclarationImport) node;
if(!declImport.isTransitive && !privateNodeIsVisible(declImport, search.getSearchOriginModule()))
return; // Don't consider private imports
for (IImportFragment impFrag : declImport.imports) {