boolean (Object element) { if (element instanceof TodoItem) { Module module = ModuleUtilCore.findModuleForFile(((TodoItem)element).getFile()); return super.canRepresent(module); } if (element instanceof PsiElement) { Module module = ModuleUtilCore.findModuleForPsiElement((PsiElement)element); return super.canRepresent(module); } return super.canRepresent(element); }