Move the SuppressWarnings to a smaller scope