<BUG>boolean visible = task.isIssue() && repository != null && repository.getRepositoryType().getPossibleTaskStates().contains(TaskState.RESOLVED);myCloseIssue.setVisible(visible);</BUG><CONTEXT>super(project, false);setTitle("Close Task");myTaskLabel.setText(TaskUtil.getTrimmedSummary(task));myTaskLabel.setIcon(task.getIcon());TaskRepository repository = task.getRepository();<extra_id_0>myTaskManager = (TaskManagerImpl)TaskManager.getManager(project);myCloseIssue.setSelected(visible && myTaskManager.getState().closeIssue);if (myTaskManager.isVcsEnabled()) {</CONTEXT>
boolean visible = task.isIssue() && TaskUtil.isStateSupported(repository, TaskState.RESOLVED);myCloseIssue.setVisible(visible);