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