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