Java 类com.intellij.lang.ExpressionTypeProvider 实例源码

项目:intellij-ce-playground    文件:ShowExpressionTypeHandler.java   
@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());
}
项目:consulo    文件:ShowExpressionTypeHandler.java   
@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());
}