IndentData (CommonCodeStyleSettings.IndentOptions options, AbstractBlockWrapper block, final int tokenBlockStartOffset) { final IndentImpl indent = block.getIndent(); if (indent.getType() == Indent.Type.CONTINUATION) { return new IndentData(options.CONTINUATION_INDENT_SIZE); } if (indent.getType() == Indent.Type.CONTINUATION_WITHOUT_FIRST) { if (block.getStartOffset() != block.getParent().getStartOffset() && block.getStartOffset() == tokenBlockStartOffset) { 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); }