public static boolean isStandardAddRemoveNotify(@Nullable Component component) {
    JRootPane rootPane = findMainRootPane(component);
    return rootPane == null || rootPane.getClientProperty(DISPOSE_TEMPORARY) == null;
  }
public static boolean isStandardAddRemoveNotify(@Nullable Component component)