void (@NotNull Project project, @NotNull final Editor editor, @NotNull final PsiFile file) { final PsiClass targetClass = findTargetClass(editor, file); final List<TestFramework> frameworks = new ArrayList<>(TestIntegrationUtils.findSuitableFrameworks(targetClass)); for (Iterator<TestFramework> iterator = frameworks.iterator(); iterator.hasNext(); ) { if (myMethodKind.getFileTemplateDescriptor(iterator.next()) == null) { iterator.remove(); } } if (frameworks.isEmpty()) return; final Consumer<TestFramework> consumer = framework -> { if (framework == null) return; doGenerate(editor, file, targetClass, framework); }; chooseAndPerform(editor, frameworks, consumer); }