Arguments () { PsiParameter[] parameters = myConstructor.getParameterList().getParameters(); if (parameters.length == 1) { PsiType type = myType.resolveGenerics().getSubstitutor().substitute(parameters[0].getType()); if (type instanceof PsiClassType clsType && TypeUtils.typeEquals(CommonClassNames.JAVA_LANG_CLASS, clsType.rawType())) { PsiType[] typeArgs = clsType.getParameters(); if (typeArgs.length == 1 && typeArgs[0] instanceof PsiClassType typeArg && typeArg.getParameterCount() == 0) { return new Arguments(typeArg.getCanonicalText() + ".class", typeArg.getPresentableText() + ".class"); } } if (TypeUtils.typeEquals(CommonClassNames.JAVA_LANG_VOID, type)) { return new Arguments(PsiKeyword.NULL, PsiKeyword.NULL); } } return null; }