Optimize IdeaDependenciesProvider.

Evaluate only configurations that contain dependencies exported to IDEA.