I'm trying to add a comment at the start of a file.
Easy enough :
PsiElementFactory factory = file.getManager().getElementFactory();
PsiComment comment = factory.createCommentFromText(msg, file);
How do I ensure that there is white space between the comment and what was the first line of the file - there is no PsiElementFactory.createWhiteSpace...