Any alternative way to fix that instead of `@SuppressWarnings("deprecation")`? If not, please add comment to explain in details.