private static <K, V> void doApply(@NotNull MyData<K, V> data) {
    if (data.annotationResult != null && data.psiRoot.isValid()) {
      try {
        data.annotationHolder.applyExternalAnnotatorWithContext(data.psiRoot, data.annotationResult);
      }
      catch (Throwable t) {
        processError(t, data.annotator, data.psiRoot);
      }
    }
  }
private static <K, V> void doApply(@NotNull MyData<K, V> data)