void () { if (!(fix instanceof LocalQuickFix || fix instanceof LocalQuickFixAsIntentionAdapter)) { markNotAbandoned(); throw new IllegalArgumentException("Fix " + fix + " must be instance of LocalQuickFix to be registered as batch"); } }