}
public static void appendToHeader(@NotNull ManifestFile manifestFile, @NotNull String headerName, @NotNull String headerValue) {
Header header = manifestFile.getHeader(headerName);
if (header != null) {
HeaderValue oldValue = header.getHeaderValue();
if (oldValue != null) {
String oldText = trimTrailing(header.getText().substring(oldValue.getStartOffsetInParent(), header.getTextLength()));
if (!oldText.isEmpty()) oldText += ",\n ";
headerValue = oldText + headerValue;
}
header.replace(createHeader(manifestFile.getProject(), headerName, headerValue));
}