List<VirtualFile> (@NotNull AnActionEvent event) { VirtualFile[] virtualFiles = event.getData(VIRTUAL_FILE_ARRAY); if (virtualFiles == null || virtualFiles.length == 0) { PsiFile file = event.getData(PSI_FILE); if (file != null) { virtualFiles = new VirtualFile[]{file.getVirtualFile()}; } } return virtualFiles == null ? Collections.emptyList() : ContainerUtil.filter(virtualFiles, v -> v.isInLocalFileSystem()); }