if (ignorePasswordMasking) { OpcodeStack.Item top = stack.getStackItem(0); Object topValue = top.getConstant(); if (topValue instanceof String) { String replacementString = (String) topValue; if (replacementString.length() == 1 &&  "Xx*".indexOf(replacementString) >= 0) return; }  }
    private void singleDotPatternWouldBeSilly(int stackDepth) {        if (stack.getStackDepth() < stackDepth) return;        OpcodeStack.Item it = stack.getStackItem(stackDepth);        Object value = it.getConstant();        if (value == null || !(value instanceof String)) return;        String regex = (String) value;        if (!regex.equals(".")) return;               bugReporter.reportBug(new BugInstance(this, "RE_POSSIBLE_UNINTENDED_PATTERN", 				NORMAL_PRIORITY)                                .addClassAndMethod(this)                                .addSourceLine(this)				);    }