GrIntroduceFieldSettings () { return new GrIntroduceFieldSettings() { @Override public boolean declareFinal() { return myPanel.isFinal(); } @Override public Init initializeIn() { return myPanel.getInitPlace(); } @Override public String getVisibilityModifier() { return PsiModifier.PRIVATE; } @Override public boolean isStatic() { return myIsStatic; } @Override public boolean removeLocalVar() { return myLocalVar != null; } @Nullable @Override public String getName() { return getInputName(); } @Override public boolean replaceAllOccurrences() { return isReplaceAllOccurrences(); } @Nullable @Override public PsiType getSelectedType() { return GrInplaceFieldIntroducer.this.getSelectedType(); } }; }