IndentData (final CommonCodeStyleSettings.IndentOptions options, final int index, IndentImpl indent) { if (indent.getType() == Indent.Type.CONTINUATION) { return new IndentData(options.CONTINUATION_INDENT_SIZE); } if (indent.getType() == Indent.Type.CONTINUATION_WITHOUT_FIRST) { if (index != 0) { return new IndentData(options.CONTINUATION_INDENT_SIZE); } else { return new IndentData(0); } } if (indent.getType() == Indent.Type.LABEL) return new IndentData(options.LABEL_INDENT_SIZE); if (indent.getType() == Indent.Type.NONE) return new IndentData(0); if (indent.getType() == Indent.Type.SPACES) return new IndentData(indent.getSpaces(), 0); return new IndentData(options.INDENT_SIZE); }