SearchScope () { final GrVariableDeclarationOwner owner = PsiTreeUtil.getParentOfType(this, GrVariableDeclarationOwner.class); if (owner != null) return new LocalSearchScope(owner); return super.getUseScope(); }