public boolean isAvailable(PsiFile file, PsiModifierListOwner owner) {
    if (owner != null && owner.getLanguage().isKindOf(JavaLanguage.INSTANCE) && isWritable(owner) &&
        ModuleUtilCore.findModuleForPsiElement(file) != null &&
        PsiUtil.isAvailable(JavaFeature.ANNOTATIONS, file)) {
      List<PsiAnnotation> annotations = getAnnotationsToAdd(owner);
      if (!annotations.isEmpty()) {
        String presentation = StreamEx.of(annotations)
          .map(MakeInferredAnnotationExplicit::getAnnotationPresentation)
          .joining(" ");
        setText(CommonQuickFixBundle.message("fix.insert.x", presentation));
        return true;
      }
    }
    
    return false;
  }
public boolean isAvailable(PsiFile file, PsiModifierListOwner owner)