Java 类com.intellij.util.MixinEP 实例源码

项目:intellij-ce-playground    文件:MixinExtension.java   
@Nullable
public static <T> T getInstance(ExtensionPointName<MixinEP<T>> name, Object key) {
  final MixinEP<T>[] eps = Extensions.getExtensions(name);
  for(MixinEP<T> ep: eps) {
    if (ep.getKey().isInstance(key)) {
      return ep.getInstance();
    }
  }
  return null;
}
项目:tools-idea    文件:MixinExtension.java   
@Nullable
public static <T> T getInstance(ExtensionPointName<MixinEP<T>> name, Object key) {
  final MixinEP<T>[] eps = Extensions.getExtensions(name);
  for(MixinEP<T> ep: eps) {
    if (ep.getKey().isInstance(key)) {
      return ep.getInstance();
    }
  }
  return null;
}
项目:consulo    文件:MixinExtension.java   
@Nullable
public static <T> T getInstance(ExtensionPointName<MixinEP<T>> name, Object key) {
  final MixinEP<T>[] eps = Extensions.getExtensions(name);
  for(MixinEP<T> ep: eps) {
    if (ep.getKey().isInstance(key)) {
      return ep.getInstance();
    }
  }
  return null;
}