public GosuInplaceIntroduceFieldPopup( PsiLocalVariable localVariable, PsiClass parentClass, boolean aStatic, boolean currentMethodConstructor, PsiExpression[] occurrences, PsiExpression initializerExpression, TypeSelectorManagerImpl typeSelectorManager, Editor editor, final boolean allowInitInMethod, boolean allowInitInMethodIfAll, final PsiElement anchorElement, final PsiElement anchorElementIfAll, final OccurrenceManager occurrenceManager, Project project) { super( project, editor, initializerExpression, localVariable, occurrences, typeSelectorManager, IntroduceFieldHandler.REFACTORING_NAME, parentClass, anchorElement, occurrenceManager, anchorElementIfAll); myStatic = aStatic; myIntroduceFieldPanel = new GosuIntroduceFieldPopupPanel( parentClass, initializerExpression, localVariable, currentMethodConstructor, localVariable != null, aStatic, myOccurrences, allowInitInMethod, allowInitInMethodIfAll, typeSelectorManager); final GridBagConstraints constraints = new GridBagConstraints( 0, GridBagConstraints.RELATIVE, 1, 1, 1, 0, GridBagConstraints.NORTHWEST, GridBagConstraints.HORIZONTAL, new Insets(0, 0, 0, 0), 0, 0); myWholePanel.add(getPreviewComponent(), constraints); final JComponent centerPanel = myIntroduceFieldPanel.createCenterPanel(); myWholePanel.add(centerPanel, constraints); myIntroduceFieldPanel.initializeControls(initializerExpression, ourLastInitializerPlace); }