void (@NotNull ReferencesSearch.SearchParameters p, @NotNull Processor<? super PsiReference> consumer) { final PsiElement target = p.getElementToSearch(); if (target instanceof GrField && !(target instanceof GrTraitField)) { PsiClass aClass = ((GrField)target).getContainingClass(); if (GrTraitUtil.isTrait(aClass)) { String traitFieldName = GrTraitUtil.getTraitFieldPrefix(aClass) + ((GrField)target).getName(); p.getOptimizer().searchWord(traitFieldName, p.getEffectiveSearchScope(), UsageSearchContext.IN_CODE, true, target, new MyProcessor(target)); } } }