final MethodDuplicatesDialog dialog = new MethodDuplicatesDialog(project, method, duplicatesNo);
dialog.show();
for (final RangeHighlighter rangeHighlighter : highlighters) {
HighlightManager.getInstance(project).removeSegmentHighlighter(editor, rangeHighlighter);
}
<BUG>if (!dialog.isOK()) return;
</BUG>
WindowManager.getInstance().getStatusBar(project).setInfo(getStatusMessage(duplicatesNo));
CommandProcessor.getInstance().executeCommand(project, new Runnable() {
public void run() {

final MethodDuplicatesDialog dialog = new MethodDuplicatesDialog(project, method, duplicatesNo);
dialog.show();
for (final RangeHighlighter rangeHighlighter : highlighters) {
HighlightManager.getInstance(project).removeSegmentHighlighter(editor, rangeHighlighter);
}
if (!dialog.isOK()) return true;
WindowManager.getInstance().getStatusBar(project).setInfo(getStatusMessage(duplicatesNo));
CommandProcessor.getInstance().executeCommand(project, new Runnable() {
public void run() {
