public static @NotNull ExpandOnDoubleClick getBehavior(@NotNull JTree tree) {
    Object property = tree.getClientProperty(KEY);
    if (property instanceof ExpandOnDoubleClick) return (ExpandOnDoubleClick)property;
    String option = Registry.get(KEY).getSelectedOption();
    if (NEVER.name().equalsIgnoreCase(option)) return NEVER;
    if (ALWAYS.name().equalsIgnoreCase(option)) return ALWAYS;
    if (NAVIGATABLE.name().equalsIgnoreCase(option)) return NAVIGATABLE;
    return DEFAULT;
  }
public static @NotNull ExpandOnDoubleClick getBehavior(@NotNull JTree tree)