static HighlightInfo.Builder checkConstructorName(@NotNull PsiMethod method) {
    PsiClass aClass = method.getContainingClass();
    if (aClass != null) {
      String className = aClass instanceof PsiAnonymousClass ? null : aClass.getName();
      if (className == null || !Comparing.strEqual(method.getName(), className)) {
        PsiElement element = ObjectUtils.notNull(method.getNameIdentifier(), method);
        String description = JavaErrorBundle.message("missing.return.type");
        HighlightInfo.Builder info = HighlightInfo.newHighlightInfo(HighlightInfoType.ERROR).range(element).descriptionAndTooltip(description);
        if (className != null) {
          IntentionAction action = QuickFixFactory.getInstance().createRenameElementFix(method, className);
          info.registerFix(action, null, null, null, null);
        }
        return info;
      }
    }

    return null;
  }
static HighlightInfo.Builder checkConstructorName(@NotNull PsiMethod method)