@Nullable private static BraceMatcher getBraceMatcherByFileType(@NotNull FileType fileType) { BraceMatcher braceMatcher = BRACE_MATCHERS.get(fileType); if (braceMatcher != null) return braceMatcher; for (FileTypeExtensionPoint<BraceMatcher> ext : Extensions.getExtensions(BraceMatcher.EP_NAME)) { if (fileType.getName().equals(ext.filetype)) { braceMatcher = ext.getInstance(); BRACE_MATCHERS.put(fileType, braceMatcher); return braceMatcher; } } return null; }
@Nullable private static BraceMatcher getBraceMatcherByFileType(final FileType fileType) { BraceMatcher braceMatcher = BRACE_MATCHERS.get(fileType); if (braceMatcher != null) return braceMatcher; for (FileTypeExtensionPoint<BraceMatcher> ext : Extensions.getExtensions(BraceMatcher.EP_NAME)) { if (fileType.getName().equals(ext.filetype)) { braceMatcher = ext.getInstance(); BRACE_MATCHERS.put(fileType, braceMatcher); return braceMatcher; } } return null; }
@Nullable private static BraceMatcher getBraceMatcherByFileType(@Nonnull FileType fileType) { BraceMatcher braceMatcher = BRACE_MATCHERS.get(fileType); if (braceMatcher != null) return braceMatcher; for (FileTypeExtensionPoint<BraceMatcher> ext : Extensions.getExtensions(BraceMatcher.EP_NAME)) { if (fileType.getName().equals(ext.filetype)) { braceMatcher = ext.getInstance(); BRACE_MATCHERS.put(fileType, braceMatcher); return braceMatcher; } } return null; }