boolean (@NotNull PsiElement queryParameters, @NotNull Processor<? super PsiElement> consumer) { if (queryParameters instanceof PomTargetPsiElement) { final PomTarget target = ((PomTargetPsiElement)queryParameters).getTarget(); if (target instanceof PsiTarget) { if (!consumer.process(((PsiTarget)target).getNavigationElement())) return false; } } return true; }