boolean (IntroduceParameterData data, UsageInfo usage, UsageInfo[] usages) { if (!(usage.getElement() instanceof PsiClass aClass) || !isJavaUsage(usage)) return true; if (!(aClass instanceof PsiAnonymousClass)) { final PsiElementFactory factory = JavaPsiFacade.getElementFactory(data.getProject()); PsiMethod constructor = factory.createMethodFromText(aClass.getName() + "(){}", aClass); constructor = (PsiMethod)CodeStyleManager.getInstance(data.getProject()).reformat(constructor); constructor = (PsiMethod)aClass.add(constructor); PsiUtil.setModifierProperty(constructor, VisibilityUtil.getVisibilityModifier(aClass.getModifierList()), true); processAddSuperCall(data, new UsageInfo(constructor), usages); } else { return true; } return false; }