LocalQuickFix (Object... infos) { final PsiMethod constructor = (PsiMethod)infos[1]; if (constructor == null) { final PsiClass aClass = (PsiClass)infos[0]; if (aClass instanceof PsiAnonymousClass) { // can't create constructor for anonymous class return null; } return LocalQuickFix.from(new AddDefaultConstructorFix(aClass, PsiModifier.PUBLIC)); } else { return new MakeConstructorPublicFix(); } }