boolean (PsiExpression argument) { if (argument != null) { PsiElement argumentParent = PsiUtil.skipParenthesizedExprUp(PsiUtil.skipParenthesizedExprUp(argument).getParent()); PsiConstructorCall constructorCall = tryCast(argumentParent.getParent(), PsiConstructorCall.class); if (constructorCall != null) { PsiMethod constructor = constructorCall.resolveConstructor(); if (constructor != null) { PsiClass aClass = constructor.getContainingClass(); if (aClass != null) { if ("java.lang.Thread".equals(aClass.getQualifiedName())) return true; } } } } return false; }