private static void deleteStatements(PsiStatement[] statements, int count, CommentTracker ct, boolean keepComments) {
      for (int i = statements.length - 1; i >= 0; i--) {
        PsiStatement statement = statements[i];
        if (statement instanceof PsiEmptyStatement) {
          ct.delete(statement);
        }
        else if (count > 0) {
          count--;
          if (keepComments) {
            ct.delete(statement);
          }
          else {
            statement.delete();
          }
        }
        else {
          break;
        }
      }
    }
private static void deleteStatements(PsiStatement[] statements, int count, CommentTracker ct, boolean keepComments)