Sometimes the code like this is written:
ArrayList<ModuleWizardStep> steps = new ArrayList<ModuleWizardStep>();
steps.add(wizardFactory.createSourcePathsStep(wizardContext, moduleBuilder, getWizardIcon(), "reference.dialogs.new.project.fromScratch.source"));
steps.add(wizardFactory.createProjectJdkStep(wizardContext));
final ModuleWizardStep[] wizardSteps = steps.toArray(new ModuleWizardStep[steps.size()]);
Here list declaration is unnecessary, and the length of array could be computed statically. The fix would thus convert it to array declaration in the first place.
Note that array length need not be constant, it should just be known when constructing the array.