private static boolean isStepWithNotCompletedSubSteps(ModuleWizardStep current) {
    return current instanceof StepWithSubSteps && !((StepWithSubSteps)current).isLast();
  }
private static boolean isStepWithNotCompletedSubSteps(ModuleWizardStep current)