private static void registerIntention(PsiExpression @NotNull [] expressions,
                                        @NotNull HighlightInfo.Builder builder,
                                        PsiClass psiClass,
                                        @NotNull JavaResolveResult candidate,
                                        @NotNull PsiElement context,
                                        TextRange fixRange) {
    if (!candidate.isStaticsScopeCorrect()) return;
    PsiMethod method = (PsiMethod)candidate.getElement();
    if (method != null && BaseIntentionAction.canModify(method)) {
      PsiNewExpression newExpression = PsiTreeUtil.getParentOfType(context, PsiNewExpression.class);
      if (newExpression == null) return;
      final ChangeTypeArgumentsFix fix = new ChangeTypeArgumentsFix(method, psiClass, expressions, newExpression);
      builder.registerFix(fix, null, null, fixRange, null);
    }
  }
private static void registerIntention(PsiExpression @NotNull [] expressions,
                                        @NotNull HighlightInfo.Builder builder,
                                        PsiClass psiClass,
                                        @NotNull JavaResolveResult candidate,
                                        @NotNull PsiElement context,
                                        TextRange fixRange)