Add annotation SuppressWarnings for depecration