@NotNull final Processor<PsiReference> consumer) {
final PsiElement myElement = queryParameters.getElementToSearch();
if (!(myElement instanceof PsiMethod)) {
return true;
}
final PsiMethod method = (PsiMethod)myElement;
Boolean isStepDefinition = ApplicationManager.getApplication().runReadAction(new Computable<Boolean>() {
@Override
public Boolean compute() {
return CucumberJavaUtil.isStepDefinition(method);
}