private static void annotateInCode(@NotNull Project project, @NotNull Collection<PsiElement> toAnnotate,
                                     @NotNull TaintValueFactory taintValueFactory,
                                     boolean makeAction,
                                     @NotNull List<PsiElement> notProcessed) {
    GlobalSearchScope scope = GlobalSearchScope.allScope(project);
    String annotation = taintValueFactory.getAnnotation();
    Set<PsiAnnotation.TargetType> targets = taintValueFactory.getAnnotationTarget(project, scope);
    if (!targets.isEmpty() && annotation != null) {
      for (PsiElement element : toAnnotate) {
        if (!annotateElement(project, annotation, targets, element, makeAction)) {
          notProcessed.add(element);
        }
      }
    }
    else {
      notProcessed.addAll(toAnnotate);
    }
  }
private static void annotateInCode(@NotNull Project project, @NotNull Collection<PsiElement> toAnnotate,
                                     @NotNull TaintValueFactory taintValueFactory,
                                     boolean makeAction,
                                     @NotNull List<PsiElement> notProcessed)