4. If real numbers $x, y$ satisfy the condition $2 x^{2}-6 x+y=0$, then the maximum value of $x^{2}+y^{2}+2 x$ is ( ).
(A) 14
(B) 15
(C) 16
(D) Cannot be determined
4.B

Translate the text above into English, please retain the original text's line breaks and format, and output the translation result directly.