LocalQuickFix (Object... infos) { final PsiNewExpression expression = (PsiNewExpression)infos[0]; final PsiJavaCodeReferenceElement classReference = expression.getClassReference(); assert classReference != null; final String className = classReference.getText(); return new CachedNumberConstructorCallFix(className); }