.setFromCore()
.save();
DuplicationBuilder builder = context.duplicationBuilder(inputFile);
for (CloneGroup duplication : duplications) {
builder.originBlock(duplication.getOriginPart().getStartLine(), duplication.getOriginPart().getEndLine());
for (ClonePart part : duplication.getCloneParts()) {
if (!part.equals(duplication.getOriginPart())) {
((DefaultDuplicationBuilder) builder).isDuplicatedBy(part.getResourceId(), part.getStartLine(), part.getEndLine());
}
}