ListPopup createLanguagePopup() {
      DefaultActionGroup actions = new DefaultActionGroup();
      for (Language language : myLanguages) {
        //noinspection ConstantConditions
        actions.add(new AnAction(language.getDisplayName(), null, language.getAssociatedFileType().getIcon()) {
          @Override
          public void actionPerformed(@NotNull AnActionEvent e) {
            setExpression(XExpressionImpl.changeLanguage(getExpression(), language));
            requestFocusInEditor();
          }
        });
      }

      DataContext dataContext = DataManager.getInstance().getDataContext(XDebuggerEditorBase.this.getComponent());
      return JBPopupFactory.getInstance()
        .createActionGroupPopup(XDebuggerBundle.message("debugger.editor.choose.language"), actions, dataContext,
                                JBPopupFactory.ActionSelectionAid.SPEEDSEARCH,
                                false);
    }
ListPopup createLanguagePopup()