void (PsiElement[] psiElements, boolean checkAbstract, boolean checkIsTest, PsiElementProcessor.CollectElements<PsiElement> collectingProcessor) { PsiElementProcessor.CollectElements<PsiElement> processor = new PsiElementProcessor.CollectElements<>(); super.collectTestMembers(psiElements, false, false, processor); // It is needed because checks on isTest makes by the test framework that founds by the configuration type // But GradleExternalTaskConfigurationType is not supported by any test framework for (PsiElement element : processor.getCollection()) { if (!checkIsTest || isTest(element, checkAbstract)) { collectingProcessor.execute(element); } } }