void () { JComboBox comboBox = myContextFile.getComboBox(); comboBox.setRenderer(new MyListCellRenderer(comboBox)); VirtualFile[] includingFiles = myIncludeManager.getIncludingFiles(myFile.getVirtualFile(), false); comboBox.setModel(new DefaultComboBoxModel(includingFiles)); myContextFile.setTextFieldPreferredWidth(30); }