ProjectUtils.getFile(project, file);
// validate the src file.
}else{
String filePath = ProjectUtils.getFilePath(project, file);
String moduleName = nature.resolveModule(filePath);
IDocument document = ProjectUtils.getDocument(project, file);
// NOTE: checkForPath is false to support python files w/ file extenstion
// != .py (like twisted .tac files for example)
SourceModule module = (SourceModule)AbstractModule.createModuleFromDoc(