private boolean isCode(String sourceString) {
        if (sourceString.isEmpty()) {
            return false;
        } else if (sourceString.contains("{") && !sourceString.contains("}")) {
            braceCount++;
            return true;
        } else if (sourceString.contains("}") && !sourceString.contains("{")) {
            braceCount--;
            return true;
        } else if (braceCount != 0) {
            return true;
        }
        return false;
    }