GrIntroduceDialog<GrIntroduceFieldSettings> (@NotNull GrIntroduceContext context) { return new GrIntroduceDialog<>() { @Override public GrIntroduceFieldSettings getSettings() { return new GrIntroduceFieldSettings() { @Override public boolean declareFinal() { return myDeclareFinal; } @Override public Init initializeIn() { return myInitializeIn; } @Override public String getVisibilityModifier() { return PsiModifier.PACKAGE_LOCAL; } @Override public boolean isStatic() { return myIsStatic; } @Override public boolean removeLocalVar() { return myRemoveLocal; } @Override public String getName() { return "f"; } @Override public boolean replaceAllOccurrences() { return replaceAll; } @Override public PsiType getSelectedType() { return mySelectedType; } }; } @Override public void show() { } @Override public boolean isOK() { return true; } @NotNull @Override public LinkedHashSet<String> suggestNames() { LinkedHashSet<String> strings = new LinkedHashSet<>(); strings.add("f"); return strings; } }; }