@NotNull
      @Override
      public String generateReplacement(@NotNull PsiElementFactory factory,
                                        @NotNull CommentTracker ct, @NotNull PsiReferenceExpression optionalVariable,
                                        PsiElement trueElement,
                                        PsiElement falseElement) {
        PsiExpression trueValue = ((PsiReturnStatement)trueElement).getReturnValue();
        PsiExpression falseValue = ((PsiReturnStatement)falseElement).getReturnValue();
        LOG.assertTrue(trueValue != null);
        LOG.assertTrue(falseValue != null);
        return "return " +
               generateOptionalUnwrap(factory, ct, optionalVariable, trueValue, falseValue, PsiTypesUtil.getMethodReturnType(trueElement)) +
               ";";
      }
@NotNull
      @Override
      public String generateReplacement(@NotNull PsiElementFactory factory,
                                        @NotNull CommentTracker ct, @NotNull PsiReferenceExpression optionalVariable,
                                        PsiElement trueElement,
                                        PsiElement falseElement)