private static HighlightInfo.Builder canSelectFrom(@NotNull PsiClassType type, @NotNull PsiTypeElement operand) {
    PsiClass aClass = type.resolve();
    if (aClass instanceof PsiTypeParameter) {
      String description = JavaErrorBundle.message("cannot.select.dot.class.from.type.variable");
      return HighlightInfo.newHighlightInfo(HighlightInfoType.ERROR).range(operand).descriptionAndTooltip(description);
    }
    if (type.getParameters().length > 0) {
      final HighlightInfo.Builder info = HighlightInfo.newHighlightInfo(HighlightInfoType.ERROR).range(operand).descriptionAndTooltip(
        JavaErrorBundle.message("cannot.select.from.parameterized.type"));
      final PsiJavaCodeReferenceElement referenceElement = operand.getInnermostComponentReferenceElement();
      if (referenceElement != null) {
        final PsiReferenceParameterList parameterList = referenceElement.getParameterList();
        if (parameterList != null) {
          info.registerFix(QuickFixFactory.getInstance().createDeleteFix(parameterList), null, null, null, null);
        }
      }
      return info;
    }
    return null;
  }
private static HighlightInfo.Builder canSelectFrom(@NotNull PsiClassType type, @NotNull PsiTypeElement operand)