void (@NotNull VirtualFile file) { FileType fileType = file.getFileType(); Project project = Objects.requireNonNull(getProject()); Messages.showWarningDialog(project, ApplicationBundle.message("light.edit.unableToOpenFile.text", file.getPresentableName()), ApplicationBundle.message("light.edit.unableToOpenFile.title")); LOG.info("Failed to open " + file.getPresentableUrl() + ", binary: " + fileType.isBinary()); }