public boolean isFunction(String line) {
        return (isVisibilityMethod(line) && !isConditionType(line) && line.contains("{") && line.contains("(") && !line.contains("return")) ? true : false;
    }