public static int findParameterClose(String methodCommand) {
        // System.out.println("methodCommand = " + methodCommand);
        int bracketLevel = 1;
        boolean isQuoteEnclosed = false;

        int index = methodCommand.length() - 2;

        while (bracketLevel != 0) {
            char currentChar = methodCommand.charAt(index);

            if (currentChar == '\"') {
                isQuoteEnclosed = !isQuoteEnclosed;

            } else if (currentChar == '(' && !isQuoteEnclosed) {
                bracketLevel--;
            } else if (currentChar == ')' && !isQuoteEnclosed) {
                bracketLevel++;
            }
//            
//            // System.out.println(currentChar + " " + isQuoteEnclosed + " " + bracketLevel);

            index--;
        }

        return index;

    }