Add code insight to plugin

Hi,
I’m trying to integrate code insight.

for some reason when I import the package:
com.atlassian.bitbucket.codeinsights.report.InsightReportService

I get this error :
package com.atlassian.bitbucket.codeinsights does not exist

Am I missing something?

Thanks!