void () { final ConfigurationManager configManager = ConfigurationManager.getInstance(myTable.getProject()); final StructuralSearchProfile profile = myTable.getProfile(); assert profile != null; final List<String> configurationNames = JBIterable .from(configManager.getAllConfigurationNames()) .filter(name -> { final Configuration config = configManager.findConfigurationByName(name); return config != null && profile.isApplicableContextConfiguration(config); }) .toList(); textField.setVariants(configurationNames); final GroupLayout layout = new GroupLayout(this); setLayout(layout); layout.setAutoCreateContainerGaps(true); layout.setHorizontalGroup( layout.createSequentialGroup() .addComponent(myLabel) .addComponent(textField) .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED, 1, 1) .addComponent(myHelpLabel) ); layout.setVerticalGroup( layout.createParallelGroup(GroupLayout.Alignment.CENTER) .addComponent(myLabel) .addComponent(textField) .addComponent(myHelpLabel) ); }