Im trying to update the elastic version from 5.x to 7.17.0

import org.elasticsearch.search.aggregations.bucket.significant.SignificantTerms; for this import im getting the error in the significant.what will be the replacement for this import ?

SignificantTerms agg = response.get(name);

            JSONArray j_entries = new JSONArray();
            j_aggregation.put("buckets", j_entries);
            for (SignificantTerms.Bucket entry : agg) {
                JSONObject j_entry = new JSONObject();
                j_entry.put("term", entry.getKey());
                j_entry.put("value", entry.getDocCount());
                j_entries.put(j_entry);
            }

this is the implementation we have used