String (@NotNull DataContext dataContext) { VirtualFile file = CommonDataKeys.VIRTUAL_FILE.getData(dataContext); if (file == null) { return null; } String fileName = file.getName(); int index = fileName.indexOf('.'); return index > 0 ? fileName.substring(0, index) : fileName; }