// sourceModule,so when we rename the php file back to its original
// name will get the wrong ModuleDeclaration
if (null == fSourceModule || !fSourceModule.exists()) {
return new IModelElement[0];
}
ModuleDeclaration moduleDeclaration = SourceParserUtil
.getModuleDeclaration(fSourceModule);
if (moduleDeclaration == null)
return new IModelElement[0];
UseStatement[] useStatements = ASTUtils.getUseStatements(
moduleDeclaration, moduleDeclaration.sourceEnd());
List<UseStatementElement> elements = new LinkedList<UseStatementElement>();
for (UseStatement useStatement : useStatements) {
for (UsePart usePart : useStatement.getParts()) {
elements.add(new UseStatementElement(
(ModelElement) fSourceModule, usePart));