diff --git a/java/java-impl/src/com/intellij/refactoring/extractMethod/preview/PreviewPanel.java b/java/java-impl/src/com/intellij/refactoring/extractMethod/preview/PreviewPanel.java
index 835bc9dc1e4b..ce6c09f764a6 100644
--- a/java/java-impl/src/com/intellij/refactoring/extractMethod/preview/PreviewPanel.java
+++ b/java/java-impl/src/com/intellij/refactoring/extractMethod/preview/PreviewPanel.java
@@ -1,6 +1,7 @@
// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.refactoring.extractMethod.preview;
+import com.intellij.ide.IdeBundle;
import com.intellij.ide.actions.exclusion.ExclusionHandler;
import com.intellij.openapi.Disposable;
import com.intellij.openapi.actionSystem.CommonDataKeys;
@@ -184,7 +185,7 @@ class PreviewPanel extends BorderLayoutPanel implements Disposable, DataProvider
myRerunButton.addActionListener(e -> rerunRefactoring());
add(myRerunButton);
- myCancelButton = new JButton(RefactoringBundle.message("refactoring.extract.method.preview.button.cancel"));
+ myCancelButton = new JButton(IdeBundle.message("button.cancel"));
DialogUtil.registerMnemonic(myRefactorButton);
myCancelButton.addActionListener(e -> close());
add(myCancelButton);
diff --git a/platform/platform-resources-en/src/messages/RefactoringBundle.properties b/platform/platform-resources-en/src/messages/RefactoringBundle.properties
index 04ac79306966..7ee4959f8776 100644
--- a/platform/platform-resources-en/src/messages/RefactoringBundle.properties
+++ b/platform/platform-resources-en/src/messages/RefactoringBundle.properties
@@ -801,9 +801,8 @@ refactoring.extract.method.preview.command=Extracting method
refactoring.extract.method.preview.group.method=Method to extract
refactoring.extract.method.preview.group.original=Original code fragment
refactoring.extract.method.preview.group.duplicates=Duplicate code fragments
-refactoring.extract.method.preview.button.refactor=Do &Refactor
+refactoring.extract.method.preview.button.refactor=&Do Refactor
refactoring.extract.method.preview.button.rerun=R&erun Refactoring
-refactoring.extract.method.preview.button.cancel=&Cancel
search.for.references=Search for re&ferences
0.is.not.an.identifier={0} is not a correct identifier to use in {1}