private List<PsiAnnotation> filterAnnotations(PsiFile file, List<PsiAnnotation> annotations) {
    if (annotations.isEmpty() || !needToAddDependency(file, annotations)) return annotations;
    if (InferNullityAnnotationsAction.maySuggestAnnotationDependency(file.getProject())) {
      myNeedToAddDependency = true;
      return annotations;
    }
    return ContainerUtil.filter(annotations, anno -> !isJetBrainsAnnotation(anno));
  }
private List<PsiAnnotation> filterAnnotations(PsiFile file, List<PsiAnnotation> annotations)