// Instantiate the fit options.
JFit.Options options = JFit.Options.makeOptions(moduleName, inputFiles, inputDirs, null, patterns, generationScope, excludeMethods, generatorLogger);
// Create the fitter and fit.
JFit jfit = new JFit(options, perspective.getWorkspace(), generatorLogger);
final ModuleDefn defn = jfit.autoFit(); // null if an error occurred.
// Deal with warnings/errors.
Status capturedStatus = statusHandler.getStatus();
if (capturedStatus.getSeverity().compareTo(Status.Severity.WARNING) >= 0) {
String title = GeneratorMessages.getString("JFIMF_JavaForeignImportTitle");