JComponent () { mySearchQueryField = new LanguageTextField(JqlLanguage.INSTANCE, myProject, myRepository.getSearchQuery()); installListener(mySearchQueryField); mySearchLabel = new JBLabel(TaskBundle.message("label.search"), SwingConstants.RIGHT); myNoteLabel = new JBLabel(); myNoteLabel.setComponentStyle(UIUtil.ComponentStyle.SMALL); myUseBearerTokenAuthenticationCheckBox = new JCheckBox(TaskApiBundle.message("use.personal.access.token")); myUseBearerTokenAuthenticationCheckBox.setSelected(myRepository.isUseBearerTokenAuthentication()); myUseBearerTokenAuthenticationCheckBox.addActionListener(new ActionListener() { @Override public void actionPerformed(final ActionEvent e) { useBearerTokenChanged(); } }); adjustSettingsForServerProperties(); return FormBuilder.createFormBuilder() .addComponentToRightColumn(myUseBearerTokenAuthenticationCheckBox) .addLabeledComponent(mySearchLabel, mySearchQueryField) .addComponentToRightColumn(myNoteLabel) .getPanel(); }