Use project instead of isTopLevelResource