boolean (@NotNull DataContext dataContext) { final Project project = CommonDataKeys.PROJECT.getData(dataContext); final Editor editor = CommonDataKeys.EDITOR.getData(dataContext); return project != null && editor != null && getCopiedFqn(dataContext) != null; }