void (@NotNull AnActionEvent e) { String pathToFile = Messages.showInputDialog("Path to file: ", "Virtual File Info", Messages.getQuestionIcon()); if (pathToFile == null) return; VirtualFile virtualFile = LocalFileSystem.getInstance().findFileByIoFile(new File(pathToFile)); if (virtualFile == null){ Messages.showErrorDialog("Cannot find virtual file", "Virtual File Info"); return; } else { StringBuilder info = new StringBuilder(); info.append("Path: "); info.append(virtualFile.getPath()); info.append("\n"); info.append("Time stamp: "); info.append(DATE_FORMAT.format(new Date(virtualFile.getTimeStamp()))); info.append("\n"); info.append("isValid: "); info.append(virtualFile.isValid()); info.append("\n"); info.append("isWritable: "); info.append(virtualFile.isWritable()); info.append("\n"); info.append("Content: "); try { info.append(VfsUtil.loadText(virtualFile)); } catch (IOException e1) { info.append("<unable to load content>"); info.append(e1.getMessage()); } info.append("\n"); Messages.showMessageDialog(info.toString(), "Virtual File Info", Messages.getInformationIcon()); } }