public static boolean isInjected(@Nullable PsiReference reference) {
    if (reference == null) return false;
    return getInjectedReferences(reference.getElement()) != null;
  }
public static boolean isInjected(@Nullable PsiReference reference)