PsiElement (PsiElement element) { String name = JVMNameUtil.getClassVMName(ClassUtils.getContainingClass(element)); if (name != null && !name.equals(myExpectedClassName)) { return null; } PsiElement method = DebuggerUtilsEx.getContainingMethod(element); if (!StringUtil.isEmpty(myExpectedMethodName)) { if (method == null) { return null; } else if (((method instanceof PsiMethod && myExpectedMethodName.equals(((PsiMethod)method).getName())) || (method instanceof PsiLambdaExpression && DebuggerUtilsEx.isLambdaName(myExpectedMethodName))) && insideBody(element, DebuggerUtilsEx.getBody(method))) { return element; } } return null; }