final LightweightHint hint = new LightweightHint(component);
HintManagerImpl.getInstanceImpl().showEditorHint(hint, editor, HintManager.UNDER,
HintManager.HIDE_BY_ANY_KEY | HintManager.HIDE_BY_TEXT_CHANGE | HintManager.HIDE_BY_SCROLLING,
0, false);
}
<BUG>private static TextRange doReplace(final Project project, final Document document, final FindModel model, FindResult result, @NotNull final String stringToReplace, boolean reallyReplace) {
final int startOffset = result.getStartOffset();</BUG>
final int endOffset = result.getEndOffset();
<BUG>int newOffset;
if (reallyReplace) {
final String converted = StringUtil.convertLineSeparators(stringToReplace);</BUG>
CommandProcessor.getInstance().executeCommand(project, new Runnable() {

final LightweightHint hint = new LightweightHint(component);
HintManagerImpl.getInstanceImpl().showEditorHint(hint, editor, HintManager.UNDER,
HintManager.HIDE_BY_ANY_KEY | HintManager.HIDE_BY_TEXT_CHANGE | HintManager.HIDE_BY_SCROLLING,
0, false);
}
private static TextRange doReplace(final Project project, final Document document, final FindModel model, FindResult result, @NotNull final String stringToReplace,
boolean reallyReplace,
List<Pair<TextRange, String>> rangesToChange) {
final int startOffset = result.getStartOffset();
final int endOffset = result.getEndOffset();
int newOffset;
final String converted = StringUtil.convertLineSeparators(stringToReplace);
if (reallyReplace) {
CommandProcessor.getInstance().executeCommand(project, new Runnable() {
