private static boolean needToAddDependency(PsiFile file, List<PsiAnnotation> annotations) {
    return ContainerUtil.exists(annotations, MakeInferredAnnotationExplicit::isJetBrainsAnnotation) &&
           JavaPsiFacade.getInstance(file.getProject()).findClass(AnnotationUtil.NOT_NULL, file.getResolveScope()) == null;
  }
private static boolean needToAddDependency(PsiFile file, List<PsiAnnotation> annotations)