question: public static SubjectType fromString ( String type ) { if ( type != null ) { for ( SubjectType subjectType : SubjectType . values ( ) ) { if ( type . equalsIgnoreCase ( subjectType . type ) ) { return subjectType ; } } } return null ; }
target:  Translates a String type into a subject type.