In general it is a difficult problem. For example, the core of Ngô's proof of the fundamental lemma is his support theorem which implies that in the context of the Hitchin fibration, all simple constituents of the direct image have full support.

If the morphism is semismall, then one has a direct sum of IC's without shift and the situation is simpler. Only *relevant* strata (for which the semismall inequality is an equality) can have local systems whose IC extension can contribute to the direct image. This was discussed in the other question. The top cohomology of a stratum has an action of the fundamental group of the stratum, by permutation of the top dimensional irreducible components (hence the action factors through the finite group of permutation of the components, which implies easily the semisimplicity in this case). For a relevant stratum, this representation corresponds to the local system you have to take the IC of. So the irreducible constituents of the representation tell you which simple IC's appear. For example, for a relevant stratum, the trivial local system always appears. Example: the Springer resolution. The simple IC's that appear are the image of the Springer correspondence. I don't know a general argument to compute the image without actually computing the correspondence.

In the general case, I assume you know the stalks the IC's which don't have full support (assuming you are doing an induction and you don't already know the big IC's: otherwise, the explanations below might or might not be more relevant). Then you want to spot the factors which occur with a negative shift (so they're shifted to the right). Take the biggest stratum for which the perverse conditions are not satisfied on the right, take the highest nonvanishing cohomology sheaf of the restriction of the direct image to that stratum (it is a local system). Then you know the IC of this (maybe reducible) local sytem, with the appropriate shift, is a direct summand. You may split it off the direct image, and by duality also the IC of the dual local system with the opposite shift. Go on like this until you are left with a perverse sheaf, and do as in the preceding paragraph (the IC's of the local systems which are on the maximally allowed cohomological degrees).

You can try this in small examples, but if you are doing something general it does not seem very nice. Are you working in a particular situation? Then try to use the particularities of the situation. For example, see the proof that the KL basis of the Hecke algebra corresponds to IC sheaves on the flag variety, in Springer's Bourbaki seminar.

On the other hand, if you already know all the stalks of all IC's (including the ones which are fully supported), and if you can keep track of degrees in the Grothendieck group (maybe exploiting some purity properties, like in the KL setting), then all you need to do is to compute the stalks of the direct image (the cohomology of the fibers), and find the decomposition in the (enriched by degree) Grothendieck group. If you can't keep track of the degrees, you will only know the alternating sum of the contributions, some cancellations might occur.

It's hard to explain all this without a blackboard, but I hope it helps! Don't hesitate to ask for more explanations. I (and others) might be able to give you more specific answers, depending on the particular situation.

shiftedIC extensions of semisimple local systems. $\endgroup$2more comments