void (@NotNull PsiNewExpression expression) { super.visitNewExpression(expression); PsiMethod constructor = expression.resolveConstructor(); if (constructor != null && generatedClass.equals(constructor.getContainingClass())) { List<PsiMethod> methods = ContainerUtil.filter(extractedClass.getConstructors(), x -> isSameMethod(x, constructor)); if (methods.size() == 1) { LOG.info("Replace constructor: " + constructor.getName()); constructor.putUserData(LightMethodObjectExtractedData.REFERENCE_METHOD, methods.get(0)); } } }