private static @Nullable List<ProcessInfo> getProcessListOnMac() {
    // In order to correctly determine executable file name and retrieve arguments from the command line
    // we need first to get the executable from 'comm' parameter, and then subtract it from the 'command' parameter.
    // Example:
    // 12  S user ./command
    // 12  S user ./command argument list

    return parseCommandOutput(COMM_LIST_COMMAND,
                              commandOnly -> parseCommandOutput(COMMAND_LIST_COMMAND,
                                                                full -> parseMacOutput(commandOnly, full, getCurrentUser())));
  }
private static @Nullable List<ProcessInfo> getProcessListOnMac()