boolean (@NotNull GrSafeCastExpression expression) { GrTypeElement typeElement = expression.getCastTypeElement(); if (typeElement == null ) return false; PsiType type = typeElement.getType(); return type instanceof PsiClassType && ((PsiClassType)type).getParameterCount() == 0; }