final IErlModule moduleA = createModule(project, "a.erl",
"-module(a).\n-export([f/0]).\nf() ->\n ok.\n");
final IErlModule moduleB = createModule(project, "b.erl",
"-module(b).\n-export([f/0]).\nf() ->\n #a.b,\n a:f().\n");
moduleA.open(null);
moduleB.open(null);
// when
// searching for the call to a:f
final ErlangSearchPattern ref = new SearchPatternFactory(ErlangEngine
.getInstance().getModelUtilService()).getSearchPattern(
SearchFor.FUNCTION, "a", "f", 0, LimitTo.REFERENCES, moduleA);