docs: public static boolean isMainProcess(@NonNull final Context context) {
          final int currentPid = android.os.Process.myPid();
          final ActivityManager activityManager = (ActivityManager) context
                  .getSystemService(Context.ACTIVITY_SERVICE);
          final List<RunningAppProcessInfo> runningProcesses = activityManager.getRunningAppProcesses();
  
          String currentProcessName = null;
          for (RunningAppProcessInfo process : runningProcesses) {
              if (process.pid == currentPid) {
                  currentProcessName = process.processName;
                  break;
              }
          }
  
          return context.getPackageName().equals(currentProcessName);
      }