boolean (SelectInContext context) { ProjectView projectView = ProjectView.getInstance(context.getProject()); Collection<SelectInTarget> targets = projectView.getSelectInTargets(); for (SelectInTarget projectViewTarget : targets) { if (projectViewTarget.canSelect(context)) return true; } return false; }