There are $2022$ distinct integer points on the plane. Let $I$ be the number of pairs among these points that are exactly $1$ unit apart. Find the maximum possible value of $I$.

Let's think step by step and output the final answer within \boxed{}.
user