private static @Nullable JLayeredPane getLayeredPane(@NotNull Editor editor) {
      final var rootPane = editor.getComponent().getRootPane();
      return rootPane != null ? rootPane.getLayeredPane() : null;
    }
private static @Nullable JLayeredPane getLayeredPane(@NotNull Editor editor)