languageConsole.getCurrentEditor().getSelectionModel().setSelection(range.getStartOffset(), range.getEndOffset());
if (myAddCurrentToHistory) {
languageConsole.addCurrentToHistory(range, false, myPreserveMarkup);
}
languageConsole.setInputText("");
<BUG>if (!StringUtil.isEmptyOrSpaces(text)) {</BUG>
myConsoleHistoryModel.addToHistory(text);
<BUG>}</BUG>
processLine(text);
}

languageConsole.getCurrentEditor().getSelectionModel().setSelection(range.getStartOffset(), range.getEndOffset());
if (myAddCurrentToHistory) {
languageConsole.addCurrentToHistory(range, false, myPreserveMarkup);
}
languageConsole.setInputText("");
myConsoleHistoryModel.addToHistory(text);
processLine(text);
}
