@Override
 protected void collectChildren(Object element, List<Object> result) {
   if (element instanceof Application && !myCreatedModuleLibraries.isEmpty()) {
     result.add(myClasspathPanel.getRootModel().getModuleLibraryTable());
   }
   super.collectChildren(element, result);
 }
 private void removeCreatedModuleLibraries(Collection<Library> selected) {
   for (Library library : myCreatedModuleLibraries) {
     if (!selected.contains(library)) {
       myClasspathPanel.getRootModel().getModuleLibraryTable().removeLibrary(library);
     }
   }
 }