PsiClass psiClass = (PsiClass) element;
String qualifiedName = psiClass.getQualifiedName();
if (qualifiedName != null) {
OttoProjectHandler ottoProjectHandler = OttoProjectHandler.get(element.getProject());
if (ottoProjectHandler.isEventClass(qualifiedName)) {
PsiIdentifier nameIdentifier = psiClass.getNameIdentifier();
if (nameIdentifier != null) {
return new LineMarkerInfo<PsiClass>(psiClass, nameIdentifier.getTextRange(), ICON,
Pass.UPDATE_ALL, null, SHOW_ALL, GutterIconRenderer.Alignment.LEFT);
}
}
}
} else if (element instanceof PsiMethodCallExpression) {