public static boolean isLanguageAnnotationTarget(final PsiModifierListOwner owner) {
    if (owner instanceof PsiMethod) {
      final PsiType returnType = ((PsiMethod)owner).getReturnType();
      if (returnType == null || !isInjectionTargetType(returnType)) {
        return false;
      }
    }
    else if (owner instanceof PsiVariable) {
      final PsiType type = ((PsiVariable)owner).getType();
      if (!isInjectionTargetType(type)) {
        return false;
      }
    }
    else {
      return false;
    }
    return true;
  }
public static boolean isLanguageAnnotationTarget(final PsiModifierListOwner owner)