/**
   * Checks type of given method, parameter or variable.
   *
   * @param aAST node to check.
   */
  private void checkClassName(DetailAST aAST) {
    final DetailAST type = aAST.findFirstToken(TokenTypes.TYPE);
    final FullIdent ident = CheckUtils.createFullType(type);

    if (isMatchingClassName(ident.getText())) {
      log(ident.getLineNo(), ident.getColumnNo(), "illegal.type", ident.getText());
    }
  }
 /**
  * Visits type.
  *
  * @param aAST type to process.
  */
 public void visitType(DetailAST aAST) {
   final String className = CheckUtils.createFullType(aAST).getText();
   mContext.addReferencedClassName(className);
 }
 /**
  * Checks whether the current method/variable definition type is "Boolean".
  *
  * @param aNode - current method or variable definition node.
  * @return "true" if current method or variable has a Boolean type.
  */
 public final boolean isBooleanType(final DetailAST aNode) {
   return mBOOLEAN.equals(
       CheckUtils.createFullType(aNode.findFirstToken(TokenTypes.TYPE)).getText());
 }