protected void createForLoopDeclaration(PsiForeachStatement statement,
                                          boolean array,
                                          String iteratedValueText,
                                          String indexText,
                                          StringBuilder newStatement) {
    newStatement.append("for(int ");
    newStatement.append(indexText);
    newStatement.append("=0;");
    newStatement.append(indexText);
    newStatement.append('<');
    newStatement.append(iteratedValueText);
    newStatement.append(array ? ".length;" : ".size();");
    newStatement.append(indexText);
    newStatement.append("++){");
  }
protected void createForLoopDeclaration(PsiForeachStatement statement,
                                          boolean array,
                                          String iteratedValueText,
                                          String indexText,
                                          StringBuilder newStatement)