@NotNull public static Set<ExpressionTypeProvider> getHandlers(final Project project, Language... languages) { return JBIterable.of(languages).flatten(new Function<Language, Iterable<ExpressionTypeProvider>>() { @Override public Iterable<ExpressionTypeProvider> fun(Language language) { return DumbService.getInstance(project).filterByDumbAwareness(LanguageExpressionTypes.INSTANCE.allForLanguage(language)); } }).addAllTo(ContainerUtil.<ExpressionTypeProvider>newLinkedHashSet()); }
@Nonnull public static Set<ExpressionTypeProvider> getHandlers(final Project project, Language... languages) { return JBIterable.of(languages).flatten(new Function<Language, Iterable<ExpressionTypeProvider>>() { @Override public Iterable<ExpressionTypeProvider> fun(Language language) { return DumbService.getInstance(project).filterByDumbAwareness(LanguageExpressionTypes.INSTANCE.allForLanguage(language)); } }).addAllTo(ContainerUtil.<ExpressionTypeProvider>newLinkedHashSet()); }