private void updateLibrariesList() { LibraryId id = getCompilerLibraryId(); LibraryDescriptor[] items = (LibraryDescriptor[]) LibraryDescriptor.compilersFor(myEditorContext.getProject()); DefaultComboBoxModel model = new DefaultComboBoxModel(items); model.insertElementAt(null, 0); myCompilerLibrary.setModel(model); myLibraryRenderer.setPrefixLength(lastIndexOfProperItemIn(items) + 1); setCompilerLibraryById(id); }