static boolean isIndexedFragment( @Nullable PsiFragment frag, int cost, DuplicatesProfile profile, DuplocatorState duplocatorState) { if (frag == null) return false; return profile.shouldPutInIndex(frag, cost, duplocatorState); }