public static void addDefaultListener(@NotNull Disposable parent, @NotNull Consumer<? super PsiElement> consumer) {
    CopyPasteManager.getInstance().addContentChangedListener(new DefaultCopyPasteListener(consumer), parent);
  }
public static void addDefaultListener(@NotNull Disposable parent, @NotNull Consumer<? super PsiElement> consumer)