boolean (@NotNull MouseEvent e, int clickCount) { if (isEnabled()) { ListPopup oldPopup = SoftReference.dereference(myPopup); if (oldPopup != null && !oldPopup.isDisposed()) { oldPopup.cancel(); myPopup = null; return true; } ListPopup popup = createLanguagePopup(); popup.showUnderneathOf(LanguageChooser.this); myPopup = new WeakReference<>(popup); return true; } return false; }