DocumentContent (@Nullable Project project, @Nullable DocumentContent referent) { String text = StringUtil.notNullize(CopyPasteManager.getInstance().getContents(DataFlavor.stringFlavor)); return documentContent(project, false) .contextByReferent(referent) .withFileName("Clipboard.txt") .buildFromText(text, false); }