if ((ep instanceof OptionalStepDefinitionExtensionPoint) &&
!((OptionalStepDefinitionExtensionPoint)ep).participateInStepDefinitionCreation(featureFile)) {
continue;
}
final Collection<? extends PsiFile> psiFiles = ep.getStepDefinitionContainers(featureFile);
final BDDFrameworkType frameworkType = ep.getStepFileType();
for (final PsiFile psiFile : psiFiles) {
result.add(Pair.create(psiFile, frameworkType));
}
}
return result;