public static boolean openExternalFunction(final String moduleName,
final ErlangFunction function, final String modulePath,
final IErlModule module, final IErlProject project,
final IErlElementLocator.Scope scope) throws CoreException {
final IErlElementLocator model = ErlangEngine.getInstance().getModel();
final IErlModule module2 = ErlangEngine.getInstance().getModelFindService()
.findModule(model, project, moduleName, modulePath, scope);
if (module2 != null) {
final IEditorPart editor = EditorUtility.openInEditor(module2);
return openFunctionInEditor(function, editor);