public static boolean isAnnotatingApplicable(@NotNull PsiElement elt, @NotNull String annotationFQN) {
    final Project project = elt.getProject();
    return PsiUtil.isAvailable(JavaFeature.ANNOTATIONS, elt) &&
           JavaPsiFacade.getInstance(project).findClass(annotationFQN, elt.getResolveScope()) != null;
  }
public static boolean isAnnotatingApplicable(@NotNull PsiElement elt, @NotNull String annotationFQN)