public static VirtualFile @NotNull [] getChildren(@NotNull VirtualFile dir) {
    VirtualFile[] children = dir.getChildren();
    return children == null ? VirtualFile.EMPTY_ARRAY : children;
  }
public static VirtualFile @NotNull [] getChildren(@NotNull VirtualFile dir)