private void addImportsToTypesReferencedInFieldDeclarations(StringBuffer buff) throws JavaModelException {  IProgressMonitor pm= new NullProgressMonitor(); IType[] referencedTypes= ReferenceFinderUtil.getTypesReferencedIn(getExtractedFields(), pm); for (int i= 0; i < referencedTypes.length; i++) { IType type= referencedTypes[i]; if (shouldBeImported(type)) addImportTo(JavaModelUtil.getFullyQualifiedName(type), buff); } }
private void addImportsToTypesReferencedInFieldDeclarations(ImportsStructure is, IProgressMonitor pm) throws JavaModelException { IType[] referencedTypes= ReferenceFinderUtil.getTypesReferencedIn(getExtractedFields(), pm); for (int i= 0; i < referencedTypes.length; i++) { IType type= referencedTypes[i]; is.addImport(JavaModelUtil.getFullyQualifiedName(type)); } }
    private void addImportsToTypesReferencedInFieldDeclarations(StringBuffer buff) throws JavaModelException {    	//XXX pm    	IProgressMonitor pm= new NullProgressMonitor();    	IType[] referencedTypes= ReferenceFinderUtil.getTypesReferencedIn(getExtractedFields(), pm);    	for (int i= 0; i < referencedTypes.length; i++) {            IType type= referencedTypes[i];            if (shouldBeImported(type))	    	    addImportTo(JavaModelUtil.getFullyQualifiedName(type), buff);        }    }