public static int getHoveredRow(@NotNull JTree tree) {
    Object property = tree.getClientProperty(HOVERED_ROW_KEY);
    return property instanceof Integer ? (Integer)property : -1;
  }
public static int getHoveredRow(@NotNull JTree tree)