NodeSortOrder (@NotNull NodeSortSettings settings) { boolean scratch = null != ScratchFileService.getInstance().getRootType(getVirtualFile()); return scratch ? NodeSortOrder.SCRATCH_ROOT : super.getSortOrder(settings); }