import org.jetbrains.annotations.NotNull;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
public class MethodDuplicatesHandler implements RefactoringActionHandler {
<BUG>public static final String REFACTORING_NAME = RefactoringBundle.message("replace.method.code.duplicates.title");
public void invoke(@NotNull final Project project, final Editor editor, PsiFile file, DataContext dataContext) {</BUG>
final int offset = editor.getCaretModel().getOffset();
final PsiElement element = file.findElementAt(offset);
final PsiMethod method = PsiTreeUtil.getParentOfType(element, PsiMethod.class);

import org.jetbrains.annotations.NotNull;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
public class MethodDuplicatesHandler implements RefactoringActionHandler {
public static final String REFACTORING_NAME = RefactoringBundle.message("replace.method.code.duplicates.title");
private static final Logger LOG = Logger.getInstance("#" + MethodDuplicatesHandler.class.getName());
public void invoke(@NotNull final Project project, final Editor editor, PsiFile file, DataContext dataContext) {
final int offset = editor.getCaretModel().getOffset();
final PsiElement element = file.findElementAt(offset);
final PsiMethod method = PsiTreeUtil.getParentOfType(element, PsiMethod.class);
