public static boolean isDiagramViewComponent(@Nullable Component component) {
    // in production yfiles classes is obfuscated
    return component != null && ClientProperty.isTrue(component, "Diagram-View-Component-Key");
  }
public static boolean isDiagramViewComponent(@Nullable Component component)