I've noticed that on some occasions (cannot pinpoint exact 'context' of a method call) JavaPsiFacade.findClass() method returns null - even though the class searched for is available on active module's classpath.
What could be the reason for such behaviour ?
At first I thought that the cause could have been IDEA's 'dumb mode' but findClass() called from within DumbModeListener interface implementation returned the class in question properly.
Also - findClass() method implementation seems to suggest that the method is 'dumb-proof' and should return viable results even when IDEA's indices are being recalculated.
Another hypothesis was that my first sweep through the current project's file hierarchy might have been launched too soon (when the project has not been initialized yet) but I first call 'rebuildStructures' (my parsing method) inside runWhenProjectIsInitialized() so it shouldn't be a problem.
Thanks in advance for any clarification,