Java 类com.intellij.openapi.components.NamedComponent 实例源码

项目:intellij-ce-playground    文件:ComponentManagerImpl.java   
@NotNull
public static String getComponentName(@NotNull Object component) {
  if (component instanceof NamedComponent) {
    return ((NamedComponent)component).getComponentName();
  }
  return component.getClass().getName();
}