PsiParameterList () { PsiParameterList parameterList = super.getParameterList(); return new LightParameterListWrapper(parameterList, this.mySubstitutor) { @Override public PsiElement getParent() { return LightRecordCanonicalConstructor.this; } @Override public PsiFile getContainingFile() { return getParent().getContainingFile(); } @Override public PsiParameter @NotNull [] getParameters() { return ContainerUtil.map2Array(super.getParameters(), PsiParameter.class, p -> new LightRecordConstructorParameter(p, this, mySubstitutor)); } }; }