String (Object... infos) { final PsiClass containingClass = (PsiClass)infos[0]; final int ordinal = ClassUtils.getTypeOrdinal(containingClass); final String name = containingClass instanceof PsiAnonymousClass ? ((PsiAnonymousClass)containingClass).getBaseClassReference().getText() : containingClass.getName(); final int innerClassType = containingClass instanceof PsiAnonymousClass ? 3 : PsiUtil.isLocalClass(containingClass) ? 2 : 1; return InspectionGadgetsBundle.message("method.only.used.from.inner.class.problem.descriptor", innerClassType, ordinal, name); }