public static boolean preparePsiElementsForWrite(PsiElement @NotNull ... elements) {
    return FileModificationService.getInstance().preparePsiElementsForWrite(Arrays.asList(elements));
  }
public static boolean preparePsiElementsForWrite(PsiElement @NotNull ... elements)