void (@NotNull TextMateBundleReader reader) { if (ApplicationManager.getApplication().isUnitTestMode()) { // it's used in internal mode only (see org.jetbrains.plugins.textmate.editor.TextMateCustomLiveTemplate.isApplicable), // do not register to save some memory and loading time Iterator<TextMateSnippet> snippetsIterator = reader.readSnippets().iterator(); while (snippetsIterator.hasNext()) { mySnippetRegistry.register(snippetsIterator.next()); } } }