private static CommonProblemDescriptor @NotNull [] createDescriptions(RefElement refElement, String access,
                                                                        @NotNull InspectionManager manager) {
    final PsiElement element = refElement.getPsiElement();
    final PsiElement nameIdentifier = element != null ? IdentifierUtil.getNameIdentifier(element) : null;
    if (nameIdentifier != null) {
      String targetVisibility = VisibilityUtil.toPresentableText(access);
      final String message = JavaAnalysisBundle.message("inspection.visibility.compose.suggestion", targetVisibility);
      final String elementDescription = ElementDescriptionUtil.getElementDescription(element, UsageViewTypeLocation.INSTANCE);
      final String quickFixName = JavaAnalysisBundle.message("change.visibility.level", elementDescription, targetVisibility);
      final AcceptSuggestedAccess fix = new AcceptSuggestedAccess(access, quickFixName);
      return new ProblemDescriptor[] {
        manager.createProblemDescriptor(nameIdentifier, message, fix, ProblemHighlightType.GENERIC_ERROR_OR_WARNING, false)
      };
    }
    return CommonProblemDescriptor.EMPTY_ARRAY;
  }
private static CommonProblemDescriptor @NotNull [] createDescriptions(RefElement refElement, String access,
                                                                        @NotNull InspectionManager manager)