Suppress false positives by adding the suppression annotation @SuppressWarnings("UnusedTypeParameter") to the enclosing element.
@SuppressWarnings("UnusedTypeParameter")