public static String getFirstStringFieldNameEndsWithFromClass( Class<?> clz, String name ) {
    """
	getFirstStringFieldNameEndsWithFromClass
	
	@param clz  class we are looking at
	@param name name
	@return field name or null
    """
        List<Field> fields = Reflection.getAllFields( clz );
        for ( Field field : fields ) {
            if (
                    field.getName().endsWith( name )
                            && field.getType().equals( Typ.string )
                            && !Modifier.isStatic( field.getModifiers() )
                            && field.getDeclaringClass() == clz ) {

                return field.getName();
            }
        }

        return null;
    }
public static String getFirstStringFieldNameEndsWithFromClass( Class<?> clz, String name ) {
        List<Field> fields = Reflection.getAllFields( clz );
        for ( Field field : fields ) {
            if (
                    field.getName().endsWith( name )
                            && field.getType().equals( Typ.string )
                            && !Modifier.isStatic( field.getModifiers() )
                            && field.getDeclaringClass() == clz ) {

                return field.getName();
            }
        }

        return null;
    }
public static String getFirstStringFieldNameEndsWithFromClass ( Class < ? > clz , String name ) { List < Field > fields = Reflection . getAllFields ( clz ) ; for ( Field field : fields ) { if ( field . getName ( ) . endsWith ( name ) && field . getType ( ) . equals ( Typ . string ) && ! Modifier . isStatic ( field . getModifiers ( ) ) && field . getDeclaringClass ( ) == clz ) { return field . getName ( ) ; } } return null ; }
getFirstStringFieldNameEndsWithFromClass

@param clz  class we are looking at
@param name name
@return field name or null
getFirstStringFieldNameEndsWithFromClass