private static void checkSetSize(final FormSourceCodeGenerator generator,
                                   final String variable,
                                   final @NonNls String methodName,
                                   final Dimension dimension) {
    if (dimension != null) {
      generator.startMethodCall(variable, methodName);
      generator.newDimension(dimension);
      generator.endMethod();
    }
  }
private static void checkSetSize(final FormSourceCodeGenerator generator,
                                   final String variable,
                                   final @NonNls String methodName,
                                   final Dimension dimension)