void (@NotNull GrMethodCallExpression grMethodCallExpression) { super.visitMethodCallExpression(grMethodCallExpression); final GrExpression methodExpression = grMethodCallExpression.getInvokedExpression(); if (!(methodExpression instanceof GrReferenceExpression reference)) { return; } final String name = reference.getReferenceName(); if (!METHOD_NAMES.contains(name)) { return; } final PsiMethod method = grMethodCallExpression.resolveMethod(); if (method == null) { return; } final PsiClass containingClass = method.getContainingClass(); if (containingClass == null || !"java.lang.Thread".equals(containingClass.getQualifiedName())) { return; } registerMethodCallError(grMethodCallExpression); }