code: private function fixNewline(Tokens $tokens, $index, $indentation, $override = true)
      {
          if ($tokens[$index + 1]->isComment()) {
              return;
          }
  
          if ($tokens[$index + 2]->isComment()) {
              $nextMeaningfulTokenIndex = $tokens->getNextMeaningfulToken($index + 2);
              if (!$this->isNewline($tokens[$nextMeaningfulTokenIndex - 1])) {
                  $tokens->ensureWhitespaceAtIndex($nextMeaningfulTokenIndex, 0, $this->whitespacesConfig->getLineEnding().$indentation);
              }
  
              return;
          }
  
          $tokens->ensureWhitespaceAtIndex($index + 1, 0, $this->whitespacesConfig->getLineEnding().$indentation);
      }
docs: Method to insert newline after comma or opening parenthesis.
  
  @param Tokens $tokens
  @param int    $index       index of a comma
  @param string $indentation the indentation that should be used
  @param bool   $override    whether to override the existing character or not