IErlangEngine _instance = ErlangEngine.getInstance();
final IErlModel model = _instance.getModel();
String _importModule = ei.getImportModule();
moduleName = _importModule;
IErlangEngine _instance_1 = ErlangEngine.getInstance();
OpenService _service = _instance_1.<OpenService>getService(OpenService.class);
IResource _resource = module.getResource();
OtpErlangList _pathVars = model.getPathVars(_resource);
ErlangProjectProperties _properties = erlProject.getProperties();
String _externalModules = _properties.getExternalModules();
OtpErlangObject _sourceFromModule = _service.getSourceFromModule(_pathVars, moduleName, _externalModules);
res2 = _sourceFromModule;
}
if ((res2 instanceof OtpErlangString)) {
boolean _tripleNotEquals_2 = (moduleName != null);
if (_tripleNotEquals_2) {