@NotNull
  private static @NlsContexts.DialogTitle String getRefactoringName(PsiElement variable) {
    return variable instanceof PsiPatternVariable
           ? JavaRefactoringBundle.message("inline.pattern.variable.title")
           : RefactoringBundle.message("inline.variable.title");
  }
@NotNull
  private static @NlsContexts.DialogTitle String getRefactoringName(PsiElement variable)