boolean (PsiScopeProcessor processor, PsiElement place, ResolveState state) { JavaPsiFacade facade = JavaPsiFacade.getInstance(place.getProject()); PsiClass browserClass = facade.findClass("geb.Browser", place.getResolveScope()); if (browserClass != null) { if (!browserClass.processDeclarations(processor, state, null, place)) return false; PsiClass pageClass = facade.findClass("geb.Page", place.getResolveScope()); if (pageClass != null) { if (!pageClass.processDeclarations(processor, state, null, place)) return false; } } return true; }