WicketForgeFacet facet = WicketForgeFacet.getInstance(module);
if (facet != null) {
for (VirtualFilePointer filePointer : facet.getResourcePaths()) {
VirtualFile virtualFile = filePointer.getFile();
if (virtualFile != null) {
scope = scope.uniteWith(GlobalSearchScopes.directoryScope(module.getProject(), virtualFile, true));
}
}
}
return scope;
}