}
private IErlModule createModule(final IFolder folder, final String moduleName, final String moduleContents) throws CoreException {
final IFile file = this.createFile(folder, moduleName, moduleContents);
final IErlModel model = this.getModel();
IErlModule module = model.findModule(file);
boolean _tripleNotEquals = (module != null);
if (_tripleNotEquals) {
module.close();
}
boolean _tripleEquals = (module == null);
if (_tripleEquals) {
IPath _location = file.getLocation();
final String path = _location.toPortableString();
String _name = file.getName();
Charset _defaultCharset = Charset.defaultCharset();
String _name_1 = _defaultCharset.name();
IErlModule _moduleFromFile = model.getModuleFromFile(model, _name, path, _name_1, path);
module = _moduleFromFile;
}
return module;
}