int (@NotNull FileTargetContextWrapper item) { JpsModuleSourceRootType<?> type = item.getSourceRootType(); if (isSourceItem(type)) return 4; if (isTestSourceItem(type)) return 3; if (isResourceItem(type)) return 2; if (isTestResourceItem(type)) return 1; return 0; }