private static boolean allowBoxing(PsiElement place) {
    final PsiElement parent = place.getParent();
    if (parent.getParent() instanceof PsiSynchronizedStatement statement && parent.equals(statement.getLockExpression())) {
      return false;
    }
    return true;
  }
private static boolean allowBoxing(PsiElement place)