Query<PsiMember> (ExpressionContext context, Expression[] params) { if (params == null || params.length == 0) return null; PsiManager instance = PsiManager.getInstance(context.getProject()); final String paramResult = params[0].calculateResult(context).toString(); if (paramResult == null) return null; final GlobalSearchScope scope = GlobalSearchScope.allScope(context.getProject()); final PsiClass myBaseClass = JavaPsiFacade.getInstance(instance.getProject()).findClass(paramResult, scope); if (myBaseClass != null) { return AnnotatedMembersSearch.search(myBaseClass, scope); } return null; }