void () { try { myPredefinedTemplates.clear(); for (DefaultLiveTemplatesProvider provider : DefaultLiveTemplatesProvider.EP_NAME.getExtensionList()) { loadDefaultLiveTemplatesFromProvider(provider); } EP_NAME.processWithPluginDescriptor((ep, pluginDescriptor) -> { String file = ep.file; if (file == null) { return Unit.INSTANCE; } try { ClassLoader pluginClassLoader = pluginDescriptor.getClassLoader(); readDefTemplate(file, !ep.hidden, pluginClassLoader, PluginInfoDetectorKt.getPluginInfoByDescriptor(pluginDescriptor)); } catch (Exception e) { LOG.error(new PluginException(e, pluginDescriptor.getPluginId())); } return Unit.INSTANCE; }); } catch (ProcessCanceledException e) { throw e; } catch (Exception e) { LOG.error(e); } }