}
private final GrIntroduceContext myContext;
public GrIntroduceFieldDialog(GrIntroduceContext context) {
super(context.getProject(), true);
myContext = context;
<BUG>GrTypeDefinition clazz = (GrTypeDefinition)context.getScope();
myIsStatic = GrIntroduceFieldHandler.shouldBeStatic(context.getPlace(), clazz);
</BUG>
initVisibility();
ButtonGroup initialization = new ButtonGroup();

}
private final GrIntroduceContext myContext;
public GrIntroduceFieldDialog(GrIntroduceContext context) {
super(context.getProject(), true);
myContext = context;
final PsiClass clazz = (PsiClass)context.getScope();
PsiElement scope = clazz instanceof GroovyScriptClass ? clazz.getContainingFile() : clazz;
myIsStatic = GrIntroduceFieldHandler.shouldBeStatic(context.getPlace(), scope);
initVisibility();
ButtonGroup initialization = new ButtonGroup();
