public void reset(ReloadType reloadType) throws Exception { switch (reloadType) { case FORCED: OpenL.reset(); OpenLConfiguration.reset(); ClassLoaderFactory.reset(); case RELOAD: modulesCache.reset(); case SINGLE: // Clear the cache of dependency manager, as the project has been modified. studio.getDependencyManager() .reset(new Dependency( DependencyType.MODULE, new IdentifierNode(null, null, moduleInfo.getName(), null))); break; } setModuleInfo(moduleInfo, reloadType); savedSearches = null; projectRoot = null; }