public class ReceiverFactory {
  public static BroadcastReceiver create(BroadcastHandler handler) {
    return new Receiver(handler);
  }
  public interface BroadcastHandler {
    void onReceive(Context context, Intent intent);
  }
  private static class Receiver {
    private BroadcastHandler mHandler;
    private Receiver(@NonNull BroadcastHandler handler) {
      mHandler = handler;
    }
    @Override
    public void onReceive(Context context, Intent intent) {
      mHandler.onReceive(context, intent);
    }
  }
}

E.g.,

public class MainActivity extends Activity {
  @Override
  public void onCreate(Bundle savedInstanceState) {
    BroadcastReceiver receiver = ReceiverFactory.create(this::handleBroadcast);
    LocalBroadcastManager.getInstance(this).registerReceiver(receiver, ...);
  }
  private void handleBroadcast(Context context, Intent intent) {
    switch (intent.getAction()) {
      // do stuff...
    }
  }
}