VirtualFile (@NotNull PsiElement candidate) { VirtualFile file = candidate.getContainingFile().getVirtualFile(); if (file != null && file.getFileSystem().getProtocol().equals("jar")) { return VfsUtilCore.getVirtualFileForJar(file); } return file; }