private boolean shouldChangeSignature() {
    if (ApplicationManager.getApplication().isUnitTestMode()) {
      //noinspection TestOnlyProblems
      return Optional.of(myExtractedMethod)
                     .map(PsiElement::getContainingFile)
                     .map(psiFile -> psiFile.getUserData(SIGNATURE_CHANGE_ALLOWED))
                     .orElse(true);
    }
    return new SignatureSuggesterPreviewDialog(myExtractedMethod, myParametrizedDuplicates.getParametrizedMethod(),
                                               myMethodCall, myParametrizedDuplicates.getParametrizedCall(), 0,
                                               myParametrizedDuplicates.getSize()).showAndGet();
  }
private boolean shouldChangeSignature()