* @param frameworkType type of file to create
*/
public PsiFile createStepDefinitionFile(@NotNull final PsiDirectory dir,
@NotNull final String fileNameWithoutExtension,
@NotNull final BDDFrameworkType frameworkType) {
final CucumberJvmExtensionPoint ep = myExtensionMap.get(frameworkType);
if (ep == null) {
LOG.error(String.format("Unsupported step definition file type %s", frameworkType.toString()));
return null;
}
return ep.getStepDefinitionCreator().createStepDefinitionContainer(dir, fileNameWithoutExtension);
}