private static @Nullable JComponent getGlassPane(@NotNull Component component) {
    JRootPane rootPane = SwingUtilities.getRootPane(component);
    return rootPane == null ? null : (JComponent)rootPane.getGlassPane();
  }
private static @Nullable JComponent getGlassPane(@NotNull Component component)