protected boolean isSelected(Graph2D graph, final Project project, final AnActionEvent event) {
return GraphSettingsProvider.getInstance(project).getSettings(graph).getCurrentLayouter() == getLayouter(graph, project);
}
protected void setSelected(Graph2D graph, boolean state, final Project project, final AnActionEvent e) {
final Graph2DView view = AbstractGraphAction.getGraph2DView(graph);
final Layouter layouter = getLayouter(graph, project);
GraphSettingsProvider.getInstance(project).getSettings(graph).setCurrentLayouter(layouter);