}
@Override
public boolean isEnabled(@NotNull GenerateActionContext context) {
JstdTestFileStructureBuilder builder = JstdTestFileStructureBuilder.getInstance();
JstdTestFileStructure fileStructure = builder.fetchCachedTestFileStructure(context.getJsFile());
if (fileStructure.getTestCaseCount() == 0) {
return false;
}
Runnable testGenerator = buildGenerator(fileStructure, context);
return testGenerator != null;
}