PsiJavaCodeReferenceElementImpl: add ensureValid (IDEA-132294)
IDEA-131648 Find In Path: when search is performed explicitly inside the .idea folder (with Directory scope), don't exclude project files