boolean (@NotNull AnActionEvent e) { // show check mark for active and visible project frame final Project project = e.getData(CommonDataKeys.PROJECT); if (project == null) { return false; } return myProjectLocation.equals(project.getPresentableUrl()); }