def METHOD_NAME(self):
    apply_conandata_patches(self)
    if Version(self.version) >= "2.0.0":
        # allow static qcustomplot with shared qt, and vice versa
        replace_in_file(self, os.path.join(self.source_folder, "qcustomplot.h"),
                              "#if defined(QT_STATIC_BUILD)",
                              "#if 0" if self.options.shared else "#if 1")