protected static @Nullable VirtualFile getJarByPsiFile(@NotNull PsiFile psiFile) {
    VirtualFile entry = psiFile.getVirtualFile();
    if (entry != null) {
      VirtualFileSystem fs = entry.getFileSystem();
      if (fs instanceof JarFileSystem) {
        return ((JarFileSystem)fs).getLocalByEntry(entry);
      }
    }

    return null;
  }
protected static @Nullable VirtualFile getJarByPsiFile(@NotNull PsiFile psiFile)