Warnings for IllegalStateExceptions