private static boolean isCalledOnThis(@NotNull PsiElement elementToHighlight) {
    PsiMethodCallExpression methodCallExpression = PsiTreeUtil.getParentOfType(elementToHighlight, PsiMethodCallExpression.class);
    if (methodCallExpression != null) {
      PsiElement qualifier = methodCallExpression.getMethodExpression().getQualifier();
      return qualifier == null || qualifier instanceof PsiThisExpression;
    }
    return false;
  }
private static boolean isCalledOnThis(@NotNull PsiElement elementToHighlight)