final IErlModel model = ErlangEngine.getInstance().getModel();
IErlModule module = model.findModule(file);
if (module == null) {
final IPath path = file.getLocation();
module = model.getModuleFromFile(model, file.getName(), path,
<BUG>Charset.defaultCharset().name());
}</BUG>
return module;
}
public static IFile createFile(IProject project, final String name,

final IErlModel model = ErlangEngine.getInstance().getModel();
IErlModule module = model.findModule(file);
if (module == null) {
final IPath path = file.getLocation();
module = model.getModuleFromFile(model, file.getName(), path,
Charset.defaultCharset());
}
return module;
}
public static IFile createFile(IProject project, final String name,
