void (ChooseByNamePopupComponent.Callback callback, ModalityState modalityState, boolean allowMultipleSelection) { super.initUI(callback, modalityState, allowMultipleSelection); dummyPanel.add(myGotoByNamePanel.getPanel(), BorderLayout.CENTER); if (myProject != null && !myProject.isDefault() && DumbService.getInstance(myProject).isDumb()) { JBLabel dumbLabel = new JBLabel(IdeBundle.message("dumb.mode.results.might.be.incomplete"), SwingConstants.LEFT); dumbLabel.setIcon(AllIcons.General.Warning); dumbLabel.setBorder(new JBEmptyBorder(10, 3, 0, 3)); dummyPanel.add(dumbLabel, BorderLayout.SOUTH); } IdeFocusManager.getGlobalInstance().doWhenFocusSettlesDown(() -> IdeFocusManager.getGlobalInstance() .requestFocus(IdeFocusTraversalPolicy.getPreferredFocusedComponent(myGotoByNamePanel.getPanel()), true)); }