int count2 = 0;
for (int i = 0; i < installer.getMods().size(); ) {
boolean skip = false;
final Mod mod = installer.getMods().get(i);
if (installer.isServer() && !mod.installOnServer()) {
continue;
}
ModsJCheckBox checkBox = null;
if ((installer.isServer() ? mod.isServerOptional() : mod.isOptional())) {
if (!mod.getCategory().isEmpty()) {