private static boolean isAutoExpandAllowed(@NotNull JTree tree) {
    Boolean allowed = ClientProperty.get(tree, AUTO_EXPAND_ALLOWED);
    return allowed != null ? allowed : tree.isShowing();
  }
private static boolean isAutoExpandAllowed(@NotNull JTree tree)