StatisticsInfo (PsiClass psiClass, PsiElement position, @Nullable ExpectedTypeInfo firstInfo) { if (PreferByKindWeigher.isInMethodTypeArg(position)) { return StatisticsInfo.EMPTY; } PsiType expectedType = firstInfo != null ? firstInfo.getDefaultType() : null; String context = JavaClassNameCompletionContributor.AFTER_NEW.accepts(position) ? JavaStatisticsManager.getAfterNewKey(expectedType) : PreferByKindWeigher.isExceptionPosition(position) ? "exception" : ""; return new StatisticsInfo(context, JavaStatisticsManager.getMemberUseKey2(psiClass)); }