void (@NotNull TransformationContext context,@NotNull GrLightMethodBuilder constructor) { GrTypeDefinition codeClass = context.getCodeClass(); var modifierList = codeClass.getModifierList(); if (modifierList == null || context.hasModifierProperty(modifierList, PsiModifier.STATIC)) { return; } PsiClass containingClass = codeClass.getContainingClass(); if (containingClass == null) { return; } var factory = GroovyPsiElementFactory.getInstance(context.getProject()); PsiClassType classType = factory.createType(containingClass); var justTypeParameter = new EnclosingClassParameter("_containingClass", classType, containingClass); constructor.addParameter(justTypeParameter); }