private void saveTextInHistory(final String text) {
   if (myHistoryId != null) {
     XDebuggerHistoryManager.getInstance(myProject).addRecentExpression(myHistoryId, text);
     myHistoryIndex = 0;
     onHistoryChanged();
   }
 }
 protected List<String> getRecentExpressions() {
   if (myHistoryId != null) {
     return XDebuggerHistoryManager.getInstance(myProject).getRecentExpressions(myHistoryId);
   }
   return Collections.emptyList();
 }