Consider the following:
import static java.net.URLEncoder.encode
Not all variants of "encode" are deprecated. Highlighting as deprecated (strikethrough) can give a false impression of needing to change code to use something else if in fact a non-deprecated variant is used. Deprecation will be indicated at point of usage.

Consider the following:
Not all variants of "encode" are deprecated. Highlighting as deprecated (strikethrough) can give a false impression of needing to change code to use something else if in fact a non-deprecated variant is used. Deprecation will be indicated at point of usage.