boolean (PsiFile file, PsiModifierListOwner owner) { if (owner != null && owner.getLanguage().isKindOf(JavaLanguage.INSTANCE) && isWritable(owner) && ModuleUtilCore.findModuleForPsiElement(file) != null && PsiUtil.getLanguageLevel(file).isAtLeast(LanguageLevel.JDK_1_5)) { 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; }