@Nullable @Override public LineMarkerInfo getLineMarkerInfo(@NotNull final PsiElement element) {
if (element instanceof PsiMethod) {
PsiMethod psiMethod = (PsiMethod) element;
SubscriberMetadata subscriberMetadata = SubscriberMetadata.getSubscriberMetadata(psiMethod);
if (subscriberMetadata != null) {
PsiTypeElement methodParameter = getMethodParameter(psiMethod);
if (methodParameter != null) {
return new LineMarkerInfo<PsiElement>(psiMethod, methodParameter.getTextRange(), ICON,
Pass.UPDATE_ALL, null, SHOW_INSTANTIATIONS_AND_PRODUCERS,
GutterIconRenderer.Alignment.LEFT);
}
}