boolean (@Nullable Path directory, @NotNull Map<TextMateFileNameMatcher, CharSequence> extensionMapping) { TextMateBundleReader reader = readBundle(directory); if (reader != null) { registerLanguageSupport(reader, extensionMapping); registerPreferences(reader); registerSnippets(reader); return true; } return false; }