ghedeon
04/22/2018, 6:23 PMR.layout.activity_main
in your code? I believe I can search for it with FilenameIndex.getFilesByName
but isn't the PsiElement of R.layout.activity_main
already linked to a physical file? It allows you to navigate to the file, so I assume there must be a way to get this reference directly from the element, avoiding the global search.