@Override
public IErlModule findInclude(final IErlElementLocator model,
final IErlProject project, final IErlModule module, final String includeName,
final String includePath) throws CoreException {
if (module != null) {
final IErlModule include = model.findIncludeFromModule(module, includeName,
includePath, IErlElementLocator.Scope.REFERENCED_PROJECTS);
if (include != null) {
return include;
}
} else if (project != null) {
final IErlModule include = model.findIncludeFromProject(project, includeName,
includePath, IErlElementLocator.Scope.REFERENCED_PROJECTS);
if (include != null) {
return include;
}
}