def _getStatementForEffect(self, effect, methods):
statements = []<EOL>if len(methods) > <NUM_LIT:0>:<EOL><INDENT>statement = self._getEmptyStatement(effect)<EOL>for curMethod in methods:<EOL><INDENT>if curMethod['<STR_LIT>'] is None or len(curMethod['<STR_LIT>']) == <NUM_LIT:0>:<EOL><INDENT>statement['<STR_LIT>'].append(curMethod['<STR_LIT>'])<EOL><DEDENT>else:<EOL><INDENT>conditionalStatement = self._getEmptyStatement(effect)<EOL>conditionalStatement['<STR_LIT>'].append(curMethod['<STR_LIT>'])<EOL>conditionalStatement['<STR_LIT>'] = curMethod['<STR_LIT>']<EOL>statements.append(conditionalStatement)<EOL><DEDENT><DEDENT>if statement['<STR_LIT>']:<EOL><INDENT>statements.append(statement)<EOL><DEDENT><DEDENT>return statements<EOL>
This function loops over an array of objects containing a resourceArn and
        conditions statement and generates the array of statements for the policy.