boolean (@NotNull VirtualFile file) { if (FileTypeRegistry.getInstance().isFileIgnored(file)) { return false; } if (!file.isWritable()) { throw new IncorrectOperationException(CoreBundle.message("cannot.delete.a.read.only.file", file.getPresentableUrl())); } return true; }